hi ,
i am new to Python. I am trying to make a script to stimulate virtual users.
But i am getting some errors while doing so...can some one help me in this.
the error is
NameError: random
at org.python.core .Py.NameError(P y.java)
my functionis
def getUserInfo(sel f):
return random.choice(s elf._users)
self._users is an array.
i am importing following things:
from java.lang import String
from java.util import *
from java.lang import *
can anyone help me ...its urgent.
or can anyone give me the logic for stimulating virtual users
rohit
i am new to Python. I am trying to make a script to stimulate virtual users.
But i am getting some errors while doing so...can some one help me in this.
the error is
NameError: random
at org.python.core .Py.NameError(P y.java)
my functionis
def getUserInfo(sel f):
return random.choice(s elf._users)
self._users is an array.
i am importing following things:
from java.lang import String
from java.util import *
from java.lang import *
can anyone help me ...its urgent.
or can anyone give me the logic for stimulating virtual users
rohit
Comment