Rnd_uniform - ObjectVision/GeoDMS GitHub Wiki
Miscellaneous functions rnd_uniform
- rnd_uniform(seed, domainunit, valuesrange)
rnd_uniform(seed, domainunit, valuesrange) results in a data item with pseudo random values and with the following arguments:
- a random seed with a unique number; using the same random seed results in the same random values;
- the domainunit of the resulting data item;
- the valuesrange determines the range of possible values. Use the range function to configure this range.
- data item seed with uint32 value type
- unit domainunit with value type from the group CanBeDomainUnit
The values unit of the resulting data item and of the valuesrange argument must match.
attribute <float32> rand (ADomain) := rnd_uniform(0, ADomain, range(float32, 0f, 1f));
rand |
---|
0.719643 |
0.781171 |
0.974884 |
0.446728 |
0.087888 |
ADomain, nr of rows = 5