This library contains common macros that performs miscellaneous tasks that are not covered by the descriptions of the other libraries contained in the Common project.
This macro allows an array of random numbers between two specified values to be easily generated. The resultant array of numbers has a type of float. A user interface is provided that allows the number of random numbers and the maximum and minimum values or the numbers to be set. The implementation of this macro uses the low-level RandomNumCore module to generate the array of random numbers. The random number seed value provided by RandomNumCore is not currently accessible through the user interface. Please see the RandomNumCore module documentation for more details about this parameter. By default the random number seed is not set.
&RandomNumParams
Reference to the parameter block, which contains real instances of the parameters for the RandomNumCore module.
num_vals
The number of random numbers that should be generated. The parameter is of type int. Normally the value of this parameter is found by referring to the parameter block, which is referenced by the &RandomNumParams input.
min_val max_val
The minimum and maximum values that define the range of the generated random numbers. The parameters are of type float. All generated random numbers will be between these two values. If the specified minimum value is greater than the maximum value then the two parameters are swapped internally before the random numbers are generated. Normally the value of this parameter is found by referring to the parameter block, which is referenced by the &RandomNumParams input.
rseed
The seed value used to setup the random number generator. The parameter is of type int. If the seed value does not have a value then the random number generator is not reinitialized. If the seed value does have a specific value then the random number generator is reinitialized with that value every time the output is generated. Normally the value of this parameter is found by referring to the parameter block, which is referenced by the &RandomNumParams input.
iac_proj/common/ms_wdgts.v contains the V definition of the random_num macro.
The MiscWidgets library inherits its process. As this library contains no procedural code, the process is not important. The CommonMods library contains all procedural code used by the Common project and should be compiled.
Andrew Dodd
International AVS Centre Manchester Visualization Centre Manchester Computing University of Manchester Oxford Road Manchester United Kingdom M13 9PL