crelte / std/rand / random
Function: random()
ts
function random(key, crelte?): number;Returns a random number between 0 (inclusive) and 1 (exclusive).
In SSR mode, the same key will always return the same random number. In client mode, the first call will return the number generated during SSR.
Parameters
key
string
crelte?
Crelte = ...
Returns
number