RandomSampler

class RandomSampler(length)

Samples elements from [0, length) randomly without replacement.

Parameters:
length : int

Length of the sequence.