Function reference
Obtains a random whole number between 1 and a specified upper limit.

Rand ( n )


Argument Description
n The upper limit of the range of random numbers you want returned. The lower limit is always 1. The upper limit cannot exceed 32,767.

Data type: Integer
The sequence of numbers generated by repeated calls to the Rand function is a computer-generated pseudorandom sequence.

Example 1
This expression returns a random whole number between 1 and 10:
Rand(10)

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment