Add pickset to randomly pick a number of elements from an array #368
Closed
gabrielstuff
started this conversation in
Ideas
Replies: 2 comments
-
Hello, @gabrielstuff! We have draw already. Can you elaborate on why that doesn't fit your needs? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing as I believe this solution is what you're after: // Get 3 random array items.
shuffle(array).slice(0, 3) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are many cases where pickset is super useful and it would be great to have radashi support it.
pickset randomly extract value from an array.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions