B
Bob Sanders
I'm trying to choose a random word from a given array. A little
something like this:
christmas_bin = ["candy", "toys", "songs"]
So then, I'd like to choose a random word from it (e.g. "toys").
I tried christmas_bin.rand, but no luck.
Any ideas?
something like this:
christmas_bin = ["candy", "toys", "songs"]
So then, I'd like to choose a random word from it (e.g. "toys").
I tried christmas_bin.rand, but no luck.
Any ideas?