Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn rand(min: int, max: int) -> int {
- ((random::<f32>() * ((max - min + 1) as f32)).floor() + (min as f32)) as int
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement