fix rng in svg dice example (#970)
fixed the rng range so that a 6 can be rolled
This commit is contained in:
1 parent
73a2beb327
commit
b4af761038
1 file changed
+1
-1
+1
-1
@@ -26,7 +26,7 @@ fn app(cx: Scope) -> Element {
|
||||
onclick: move |_| {
|
||||
use rand::Rng;
|
||||
let mut rng = rand::thread_rng();
|
||||
val.set(rng.gen_range(1..6));
|
||||
val.set(rng.gen_range(1..=6));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user