FME Transformers: 2024.1

Categories
Calculated Values
Strings

RandomNumberGenerator

Generates a uniformly distributed random number.

The random number is x, where Minimum Value <= x <= Maximum Value.

Usage Notes

  • 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.

Configuration

Output Ports

Note  Feature order may change in relation to other output ports. Feature order per port is maintained.

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

FME Community

The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.

Search for all results about the RandomNumberGenerator on the FME Community.