The first examples that I googled didn't work. This should be trivial, right?
-
5This was in my first hit: docs.python.org/library/random.html#module-random -- random.choice(seq)¶ Return a random element from the non-empty sequence seq.Daniel– Daniel2009-06-29 14:52:03 +00:00Commented Jun 29, 2009 at 14:52
-
1Many times looking in the library can be more helpful. Getting the documentation for the random module would have worked. It does take some time to know where to look, but for anything involving "random" check the random module first.Kathy Van Stone– Kathy Van Stone2009-06-29 15:18:29 +00:00Commented Jun 29, 2009 at 15:18
Add a comment
|