This HTML automatically generated with rman for NEMO
Table of Contents

Name

randomizer - select M random indices from N

Synopsis


int *randomizer(int n, int m)

Description

randomizer returns an index array of size m, containing indices in the range 0..n-1, drawn randomly. The array was allocated using allocate(3NEMO) , and should be freed using standard free(3) .

m is also allowed to be as large as Bn, in which case it will return a fully permuted index array.

See Also

xrandom(3NEMO) , allocate(3NEMO)

Files

~/src/kernel/misc    randomize.c

Author

Peter Teuben

Update History


28-feb-08    written        PJT


Table of Contents