Simple random number generator example