Skip to content

Instantly share code, notes, and snippets.

@yatakeke
Last active February 18, 2019 02:00
Show Gist options
  • Save yatakeke/b1f285bd9b3a64b4f7c9aab83c8e14f2 to your computer and use it in GitHub Desktop.
Save yatakeke/b1f285bd9b3a64b4f7c9aab83c8e14f2 to your computer and use it in GitHub Desktop.
a = list(range(10))
print("before : ", a)
b = np.random.permutation(a)
print("after : ", b)
====>>>>
before : [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
after : [9 7 4 0 8 3 2 6 5 1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment