Working with appropriate random number generator