RANDBETWEEN
Math & trigExcel 2007volatileA random whole number between two bounds (inclusive).
Syntax
RANDBETWEEN(bottom, top)
Examples
=RANDBETWEEN(1, 6)
→ a dice roll
Related functions
More Math & trig functions
Syntax follows Microsoft’s documentation. Examples are written to be pasted into a cell and checked. Argument separators may be ; in your locale. The AI explainer runs on a free community model — verify anything important.