def shuffleArray(inArray, shuffleAxis=(-1), seed=None):
 if (seed is not None):
  numpy.random.seed(seed)
 inArray = numpy.array(inArray, 'O')
 rndArray = numpy.random.random(inArray.shape)
 newIndices = numpy.argsort(rndArray, shuffleAxis)
 return numpy.take(inArray, newIndices)

def shuffleArray ( inArray , shuffleAxis = ( - 1 ) , seed = None ) : if ( seed is not None ) : numpy . random . seed ( seed ) inArray = numpy . array ( inArray , 'O' ) rndArray = numpy . random . random ( inArray . shape ) newIndices = numpy . argsort ( rndArray , shuffleAxis ) return numpy . take ( inArray , newIndices )
deprecated: use numpy .