rand()
Returns a random number.
rand()
rand(1000)
Syntax
rand()
- returns a value of typereal
with a uniform distribution in the range [0.0, 1.0).rand(
N)
- returns a value of typereal
chosen with a uniform distribution from the set {0.0, 1.0, ..., N - 1}.
Learn more about syntax conventions.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for