random number generator for contests