# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# +
import numpy as np

from sklearn.utils import shuffle


# -

def check_random_seed(max_iter=None,random_state=None):
    if max_iter == None:
        max_iter = 100
    print('max_iter:',max_iter)
    
    np.random.seed(random_state)
    a = np.random.choice(20,size=5,replace=False)
    #print(a)
    return a


b = check_random_seed(max_iter=10)
print(b)

random_state = 2
np.random.seed(random_state)
a = np.random.choice(20,size=5,replace=False)
print(a)



StarcoderdataJupyterScriptsDedupFiltered