[OpenSTA-users] Why isn't my Random variable very random?
Brought to you by:
dansut
|
From: Stephen K. <Ste...@on...> - 2007-08-15 08:57:31
|
I can't quite get the hang of random variables and I'm sure I'm missing
something, but I've looked at the help, sourceforge and tried some tests,
but can't work out what I'm doing wrong.
To highlight the problem I created a tiny script.
I have this line in my definition section of script:
Integer userthinktime (5000 - 20000), RANDOM
Then in the code section of my script I have these lines:
generate userthinktime
log userthinktime
If I run this script in the modeler it logs a random value each time and
that's good. However, when I run this as a test for 10 seconds with 10
users running the same script I get this sort of thing in the logs (i.e. it
increments by a few milliseconds each time):
LOG: 13373,
LOG: 13376,
LOG: 13379,
LOG: 13382,
LOG: 13386,
LOG: 13389,
LOG: 13395,
LOG: 13399,
LOG: 13405,
LOG: 13409,
LOG: 13412,
LOG: 13425,
LOG: 13428,
LOG: 13431,
What I want is a genuinely random variable picked up by each virtual user
running the script, but I can't work out how to do it. I'll keep trying
but if anyone knows how to do this I'd appreciate a nudge in the right
direction.
Thanks, Steve
For the latest data on the economy and society consult National Statistics at http://www.statistics.gov.uk
*********************************************************************************
Please Note: Incoming and outgoing email messages are routinely monitored for compliance with our policy on the use of electronic communications
*********************************************************************************
Legal Disclaimer : Any views expressed by the sender of this message are not necessarily those of the Office for National Statistics
*********************************************************************************
The original of this email was scanned for viruses by the Government Secure Intranet Anti-Virus service supplied by Cable&Wireless in partnership with MessageLabs. (CCTM Certificate Number 2006/04/0007.) On leaving the GSi this email was certified virus free.
Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes.
|