randomnumbergenerator
Generates a uniformly distributed random number.
随机数为x,其中最小值<= x <=最大值。
Parameters
Specify the minimum value that can be generated.
Specify the maximum value that can be generated.
随机数将舍入到十进制位置参数中指定的位数。
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.
如果最小值或最大值具有比结果所要求的小数位的小数位,所使用的实际最小值将被舍入,使用的实际最大值将被舍入到请求的小数位。这是为了确保生成的随机数将始终落在最小值和最大值之间。
属性的名称以保存生成的数字。
使用说明
randomnumbergeneratorgenerates random numbers using the Tclrand()
function. The numbers generated by this function may not be considered truly random, becauserand()
需要一个初始种子值,确定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.
编辑变压器参数
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, clickbeside the applicable parameter. For more information, see变压器参数菜单选项.
变压器类别
技术历史
相关的FME功能或工厂:@Evaluate,@ TCL2
Search FME Knowledge Center
Search for samples and information about this transformer on theFME Knowledge Center.