Rnd_permutation - ObjectVision/GeoDMS GitHub Wiki
Miscellaneous functions rnd_permutation
- rnd_permutation(seed, domainunit)
rnd_permutation(seed, domainunit) results in a random permutation of the index numbers of the domainunit argument with the following arguments:
- a seed with a unique number; using the same seed results in the same random order;
- unit domainunit, the domain unit for which the permutation is made;
- data item seed with uint32 value type
- unit domainunit with valuetype from the group CanBeDomainUnit
5.68
attribute<ADomain> rand_order (ADomain) := rnd_permutation(0, ADomain);
| rand_order |
|---|
| 1 |
| 0 |
| 3 |
| 4 |
| 2 |
ADomain, nr of rows = 5