diff --git a/vlib/rand/rand.v b/vlib/rand/rand.v index 0201b4d3cb..15ac15c013 100644 --- a/vlib/rand/rand.v +++ b/vlib/rand/rand.v @@ -327,7 +327,6 @@ 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) ? for i in 0 .. k { results[i] = array[indices[i]]