RANDBETWEEN DAX Function (Math and Trig)
Returns a random number between the numbers you specify.
Syntax
Parameter | Attributes | Description |
---|---|---|
Bottom |
The smallest integer RANDBETWEEN will return. |
|
Top |
The largest integer RANDBETWEEN will return. |
Return values
A random integer number between Bottom and Top, which are included in the range of the possible integer results.
If Bottom is greater than Top, then RANDSBETWEEN raises an error.
Related functions
Other related functions are:
Last update: Jan 11, 2021 » Contribute » Show contributors
Contributors: Alberto Ferrari, Marco Russo, Kenneth Barber
MSDN documentation: https://docs.microsoft.com/en-us/dax/randbetween-function-dax