-
Notifications
You must be signed in to change notification settings - Fork 1
Rnd_permutation
mtbeek32 edited this page Feb 20, 2024
·
6 revisions
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
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.