random icon indicating copy to clipboard operation
random copied to clipboard

Add random.choice

Open BbayuGt opened this issue 3 years ago • 0 comments

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?

BbayuGt avatar Jun 29 '21 14:06 BbayuGt