Calvin
Posts: 3
Nickname: calvin79
Registered: Aug, 2004
|
|
random from an array
|
Posted: Aug 6, 2004 3:08 PM
|
|
Advertisement
|
Hi All,
I've just started to try python so forgive the ignorance!
I've been using this, or something like it;
First = random.choice ('abc') answer = first print answer - no problems there.
What I want to do, however, is take a random pick from something like the following;
First = random.??? ("rna", "rnb", "rnc") - this of course "random.choice" doesn't work.
Could some kind person help me out with the code? I know I'm trying to run before I can walk, but there you go...
Thanks,
Calvin
|
|