function discreteUniform( x, size, rand ) {
	var pos;
	var out;
	var N;
	var i;

	N = x.length;
	out = new Array( size );
	for ( i = 0; i < size; i++ ) {
		pos = floor( N * rand() );
		out[ i ] = x[ pos ];
	}
	return out;
}
Samples from a discrete uniform distribution (equal probabilities and with replacement).

@private
@param {ArrayLike} x - array-like object from which to sample
@param {NonNegativeInteger} size - sample size
@param {Function} rand - PRNG for generating uniformly distributed numbers
@returns {Array} sample