A 1-D array-like sequence, to be used as input to
np.random.choice. Samples are generated randomly from the elements of the
The number of samples to return each round.
A boolean indicating whether the sampling is done with replacement
(True) or without replacement (False).
If random_seed is set as an integer, then we use it as a random
seed for which clients are sampled at each round. In this case, we set a
random seed before sampling clients according to a multiplicative linear
congruential generator (aka Lehmer generator, see 'The Art of Computer
Programming, Vol. 3' by Donald Knuth for reference). This does not affect
model initialization, shuffling, or other such aspects of the federated
A function that takes as input an integer round_num and returns a list of
elements sampled (pseudo-)randomly from the input sample_range.