randomized snake