generate random numbers using a device