=RANDBETWEEN(bottom, top)
=RANDBETWEEN(1,9)
The RANDBETWEEN function is used to generate random numbers within a specified range. For example, if you wanted to generate a random number between 1 and 9, you would enter the preceding formula into a cell in Sourcetable. This would return a random number between 1 and 9 every time the cell is recalculated.
=RANDBETWEEN(-10,0)
You can also use the RANDBETWEEN function to generate a random number between two negative numbers. For example, if you wanted to generate a random number between -10 and 0, you would enter the formula into a cell in Sourcetable. This would return a random number between -10 and 0 every time the cell is recalculated.
=RANDBETWEEN(10,100)
The RANDBETWEEN function can also be used to generate a random number between two positive numbers. For example, if you wanted to generate a random number between 10 and 100, you would enter the preceding into a cell in Sourcetable. This would return a random number between 10 and 100 every time the cell is recalculated.
The RANDBETWEEN function is a Sourcetable formula that returns a random integer between two specified numbers. Every time the worksheet is calculated, a new random number is generated. The bottom and top arguments are required and determine the smallest and largest integers that can be returned.