SyntaxFix
Write A Post
Hire A Developer
Questions
Very simple solution:
randomize = np.arange(len(x)) np.random.shuffle(randomize) x = x[randomize] y = y[randomize]
the two arrays x,y are now both randomly shuffled in the same way