Skip to content

Instantly share code, notes, and snippets.

@yeondudad
Created June 20, 2018 04:51
Show Gist options
  • Save yeondudad/504f4058693949751ed74c694152d24b to your computer and use it in GitHub Desktop.
Save yeondudad/504f4058693949751ed74c694152d24b to your computer and use it in GitHub Desktop.
import random
l1 = [random.randrange(0, 10) for i in range(10)]
random.seed(0)
l2 = [random.randrange(0, 10) for i in range(10)]
print(l1) # [2, 7, 8, 0, 6, 6, 8, 7, 9, 1]
print(l2) # [8, 7, 4, 2, 5, 4, 7, 3, 4, 5] always same
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment