[OpenSTA-devel] [ opensta-Bugs-415144 ] RANDOM fails with ranges > 32768
Brought to you by:
dansut
|
From: SourceForge.net <no...@so...> - 2005-06-16 15:28:51
|
Bugs item #415144, was opened at 2001-04-10 09:51 Message generated for change (Settings changed) made by dansut You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110857&aid=415144&group_id=10857 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Script Language Group: Behavioral Status: Open Resolution: Accepted Priority: 5 Submitted By: Richard Clarke (rclarke) >Assigned to: Daniel Sutcliffe (dansut) Summary: RANDOM fails with ranges > 32768 Initial Comment: SCL allows a range of values to be specified in the Definitions section of a script for an integer variable. If this range is greater than 32768, no value beyond the 32768th will be generated. This is because the random number generation function that is used only generates a value in the range 0 to 32767. For example, the definition: Integer myvar (0-60000) will never generate a random value above 32767 when "GENERATE myvar" is used. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110857&aid=415144&group_id=10857 |