diff --git a/vlib/rand/rand.v b/vlib/rand/rand.v index 0201b4d3cb..ab7ccae57d 100644 --- a/vlib/rand/rand.v +++ b/vlib/rand/rand.v @@ -328,7 +328,7 @@ pub fn (mut rng PRNG) choose(array []T, k int) ?[]T { mut results := []T{len: k} mut indices := []int{len: n, init: it} // enfoce the type to int to avoid ambiguity - rng.shuffle(mut indices) ? + rng.shuffle(mut indices) ? for i in 0 .. k { results[i] = array[indices[i]] }