Re: I can't import random module


javierfernandezc@...
 

I have already seen that, thanks. I tried that and failed againg:

clr.AddReferenceByName('IronPython.Modules')
from IronPython.Modules import *
import random
foo = ['a', 'b', 'c', 'd', 'e']
print(random.choice(foo))  

ERROR: No module named random

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