Generating a random number(variable) in a User Program

See this post: Random Number Generator