classical random number generation