1
0
Fork 0
forked from AbleOS/ableos
ableos/sysdata/libraries/stn/src/random.hb
2024-10-25 16:37:38 +01:00

7 lines
203 B
Plaintext

any := fn($Expr: type): Expr {
return *@eca(3, 4, &@as(Expr, idk), @sizeof(Expr))
}
range := fn($Expr: type, min: Expr, max: Expr): Expr {
return @inline(any, Expr) % (max - min) + @intcast(1) + min
}