The RANDBETWEEN function takes twoarguments:bottomandtop.Bottomrepresents the lower bound for a random number, andtoprepresents the upper bound.
RANDBETWEEN includes bothtopandbottomvalues in the range of integers that may be returned.
Note: inExcel 365, theRANDARRAY functionis a more flexible alternative.
For example, =RAND() will generate a number like 0.422245717.
RAND recalculates when a worksheet is opened or changed.
RANDARRAY Function
The Excel RANDARRAY function generates an array of random numbers between two values.
The size or the array is specified byrowsandcolumnsarguments.
The generated values can be either decimals or whole numbers.