79453284

Date: 2025-02-20 03:40:15
Score: 1.5
Natty:
Report link

Just to provide the full code for the (correct) answer @Guimoute provides:

import numpy as np
np.random.seed(5)

labels_copy = np.empty_like(labels)
np.copyto(labels_copy, labels)

np.random.shuffle(labels_copy)
print(labels[:5])

will provide the same answer every time.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Guimoute
  • Low reputation (0.5):
Posted by: sepiatone