By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,908 Members | 1,860 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,908 IT Pros & Developers. It's quick & easy.

Neep help for the logic to stimulate virtual users

P: 2
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(Py.java)

my functionis

def getUserInfo(self):
return random.choice(self._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
Mar 12 '08 #1
Share this Question
Share on Google+
2 Replies


jlm699
100+
P: 314
Did you import random?
Mar 12 '08 #2

P: 2
yeah i import the random
Mar 17 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.