Method
NumCosmoMathRNGchoose
Declaration [src]
void
ncm_rng_choose (
NcmRNG* rng,
void* dest,
size_t k,
void* src,
size_t n,
size_t size
)
Description [src]
This function fills the array dest with k elements from the array src.
The elements are chosen randomly using the algorithm (choose with replecement) in
gsl_ran_choose().
Parameters
dest-
Type:
void*An array of
kelements of sizesize.The argument can be NULL.The data is owned by the caller of the method. k-
Type:
size_tNumber of elements in
dest. src-
Type:
void*An array of
nelements of sizesize.The argument can be NULL.The data is owned by the caller of the method. n-
Type:
size_tNumber of elements in
src. size-
Type:
size_tSize of each element in
destandsrc.