adding alternative random number generation option