<jupyter_start><jupyter_text>Random & Seed<jupyter_code>import random
dir(random)
# random.seed is called pseudo random generator 
from random import randint,seed
for i in range(10):    # loop will execute 10 times.
  print(randint(0,10))
# after assigning the seed function , we will get always certain/same random numbers 'or' same result.
seed(123)   # set a certain starting point 
for i in range(10):    # loop will execute 10 times.
  print(randint(0,10)) 
seed(12)  
for i in range(10):  
  print(randint(0,10)) 
seed(0)  
for i in range(10):  
  print(randint(0,10)) 
seed(1)  
for i in range(10):  
  print(randint(0,10))<jupyter_output>2
9
1
4
1
7
7
7
10
6
StarcoderdataJupyterStructuredCleanDedup