#NEWLINE# @ staticmethod #NEWLINE# def sampleWithoutReplacement( sampleSize , totalSize ) : #NEWLINE# #INDENT# ' \n        Create a list of integers from 0 to totalSize, and take a random sample of size sampleSize. The \n        sample ordered. \n        ' #NEWLINE# perm = rand . permutation ( totalSize ) #NEWLINE# perm = perm [ 0 : totalSize ] #NEWLINE# perm = numpy . sort ( perm ) #NEWLINE# return perm