Generator of random numbers for lotteries