As C. Norris said, you can use the RND command, which receives a number as a parameter, and returns a number between zero and the number you sent as the parameter minus 1. That means, for example, if you were to do... A=RND(6) ...then the value of A would be a number between 0 and 5.