Created
June 20, 2018 04:51
-
-
Save yeondudad/504f4058693949751ed74c694152d24b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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