ableos/sysdata/libraries/stn/src/random.hb
2024-10-15 21:43:23 +01:00

8 lines
236 B
Plaintext

any := fn($Expr: type): Expr {
return @intcast(@eca(3, 4))
}
range := fn($Expr: type, min: Expr, max: Expr): Expr {
// wtf is this
return @intcast(@as(int, @eca(3, 4)) % @as(int, @intcast(max) - @intcast(min)) + 1 + @intcast(min))
}