Generates a uniformly distributed random number.
The random number is x, where Minimum Value <= x <= Maximum Value.
Specify the minimum value that can be generated.
Specify the maximum value that can be generated.
The random number will be rounded to the number of digits specified in the Decimal Places parameter.
Note that in general, when the Minimum Value and Maximum Value is specified in an exponential form (for example, "1.0e+25"), Decimal Places refers to the number of decimal places in the exponential form.
If Minimum Value or Maximum Value have more decimal places than the Decimal Places requested for the result, the actual minimum value used will be rounded up and the actual maximum value used will be rounded down to the requested decimal places. This is to ensure that the generated random number will always fall between the Minimum Value and the Maximum Value.
The name of the attribute to hold the generated number.
RandomNumberGenerator generates random numbers using the Tcl
rand() function. The numbers generated by this function may not be considered truly random, because
rand() requires an initial seed value, which determines the sequence of numbers that is generated. There are no more than 2^31 possible random number sequences, and these sequences repeat after 2^31 times. The same seed value, used repeatedly, generates the same numbers. Additionally, the sequence, by design, never produces the same number twice in a row.
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Associated FME function or factory: @Evaluate, @Tcl2
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.