Home > @josh-brown/vector > ScalarOperations > random
Returns a random scalar value between min
and max
Signature:
abstract random(min: number, max: number): S;
Parameter | Type | Description |
---|---|---|
min | number | |
max | number |
Returns:
S
The random scalar
This might not be a meaningful value for non-real-values scalar types