function randomBetween
Unstable
randomBetween(): numberGenerates a random number between the provided minimum and maximum values.
The number is in the range [min, max), i.e. min is included but max is excluded.
Examples
Usage
Usage
import { randomBetween } from "@std/random"; randomBetween(1, 10); // 6.688009464410508 randomBetween(1, 10); // 3.6267118101712006 randomBetween(1, 10); // 7.853320239013774
Parameters
min: numberThe minimum value (inclusive)
max: numberThe maximum value (exclusive)
optional
options: RandomOptionsThe options for the random number generator
Return Type
A random number between the provided minimum and maximum values