randbetween
Uniform random integer in a range.
Syntax
Section titled “Syntax”v = randbetween(bottom, up)Description
Section titled “Description”Returns a uniform random integer in [bottom, up] (both endpoints inclusive). Same distribution as randi([bottom, up]).
Example
Section titled “Example”randbetween(1, 10)