Method
NumCosmoMathRNGdiscrete_gen
Declaration [src]
gsize
ncm_rng_discrete_gen (
NcmRNG* rng,
NcmRNGDiscrete* rng_discrete
)
Description [src]
This function returns a random number drawn from the discrete distribution. The weights must created using ncm_rng_discrete_new().
Parameters
rng_discrete-
Type:
NcmRNGDiscreteA
NcmRNGDiscrete.The data is owned by the caller of the method.