Suppose I have a Vector
like:
["Cat", "Dog", "Chicken", "Caribou"]
How can I uniformly randomly select an item?
It's as simple as
v=["Cat", "Dog", "Chicken", "Caribou"]
rand(v)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With