Closed pengweichu closed 3 years ago
Hi,
How can I get an element by a random number?
Update: I think the nth method is it, right?
Thanks!
Yes if you want an element at a random index in the hash-map/set, generate a number between [0;size) and use nth.
nth
Hi,
How can I get an element by a random number?
Update: I think the nth method is it, right?
Thanks!