I can't import random module


javierfernandezc@...
 

I would like to run a code like this:

import random
 
def runScript():
    foo = ['a', 'b', 'c', 'd', 'e']
    print(random.choice(foo))  

But I have this error:

"no module named random"

Join users@ironpython.groups.io to automatically receive all group messages.