logo-header

 
 

rnd_permutation

syntax

syntax

rnd_permutation(seed, DomainUnit) results in a random permutation of the index numbers of the DomainUnit argument.

  • a random seed with a unique number; using the same random seed results in the same random order;
  • the DomainUnit for which the permutation is made;

applies to

Data item random seed with value type:

  • uint32

Unit domainunit with value type:

  • group: CanBeDomainUnit

since version

5.68

example

attribute<float32> rand_order (ADomain): expr = 
"rnd_permutation("
"
0"
",ADomain"
")";
rand_order
1
0
3
4
2
Table ADomain, nr of rows = 5

see also


OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904



Recent Wiki Changes