Scheduler and a Random Number Generator

Scheduler and a Random Number Generator

I want to generate a random number in the Scheduler so that I can choose one of the items from a list. As I understood, there is no random number generator in Deluge. However, it was suggested to use 
zoho.currenttime.toLong() and use the microseconds places to generate the random numbers.

However, the Scheduler runs at a fixed time because of which the last three bits are always zero. 

Is there any other way to generate a random number from inside the Scheduler?