rand example fixup
This commit is contained in:
parent
c88f337fc9
commit
be22fddba0
@ -25,7 +25,7 @@
|
||||
use core::rand::RngUtil;
|
||||
|
||||
fn main() {
|
||||
let rng = rand::rng();
|
||||
let mut rng = rand::rng();
|
||||
if rng.gen() { // bool
|
||||
println(fmt!("int: %d, uint: %u", rng.gen(), rng.gen()))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user