shaker to generate a random number