Get rid of unused variable.
This commit is contained in:
parent
3affea8701
commit
df21fd2c3f
@ -31,7 +31,7 @@ fn main() {
|
|||||||
{
|
{
|
||||||
let mut nums:Vec<u32> = (1..size+1).collect();
|
let mut nums:Vec<u32> = (1..size+1).collect();
|
||||||
|
|
||||||
for _i in 0..nums.len()
|
while nums.len() > 0
|
||||||
{
|
{
|
||||||
let rand_i:usize = rand::random::<usize>() % nums.len();
|
let rand_i:usize = rand::random::<usize>() % nums.len();
|
||||||
boxes.push(nums[rand_i]);
|
boxes.push(nums[rand_i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user