link-grammar-5.8.0/link-grammar/tokenize/anysplit.c
/**
 * Return a number between 0 and nsplits-1, including.
 * No need for a good randomness; mediocre randomness is enough.
 * We suppose int is 32 bit.
 */
Return a number between 0 and nsplits-1, including.
No need for a good randomness; mediocre randomness is enough.
We suppose int is 32 bit.
Return a number between 0 and nsplits - 1 including . No need for a good randomness ; mediocre randomness is enough . We suppose int is 32 bit .
static int rng_uniform(unsigned int *seedp, size_t nsplits)
{
	int res;
	res = rand_r(seedp);
	return res % nsplits;
}
static int rng_uniform ( unsigned int * seedp , size_t nsplits ) { int res ; res = rand_r ( seedp ) ; return res % nsplits ; }
Return a number between 0 and nsplits-1, including.
Return a number between 0 and nsplits - 1 including .
/* I don't mind the slight skew */