Function PGARandomNextSample

Function Documentation

int PGARandomNextSample(PGASampleState *state)

Get next sample index for k out of n.

Description

See PGARandomSampleInit() for documentation and example.

Parameters
  • state – pointer to PGASampleState, needs to be allocated by caller and initialized by PGARandomSampleInit

Returns

next sample