random
random copied to clipboard
Add random.choice
Just like python random
, making random.choice
is a pretty good thing. just for a simplicity.
Example :
array : ["a", "b"]
Instead of doing
array[random.int(0,1)] // return "a"
isn't it better if you could do :
random.choice(array) // return "a"
I know some of you'll like "you can make it yourself". But isn't this why this module created?