import numpy as np

np.random.seed(1000) # シードの固定

s = ['a', 'b', 'c', 'd', 'e']

a = np.random.choice(s, 10)

print(a)

'''
['d' 'a' 'd' 'e' 'b' 'a' 'b' 'a' 'b' 'e']
'''
97725f17ca343317afa1cb0ae7833f5ad03ba763
<mask token>

<mask token>
np.random.seed(1000)
<mask token>
print(a)
<mask token>

<mask token>
np.random.seed(1000)
s = ['a', 'b', 'c', 'd', 'e']
a = np.random.choice(s, 10)
print(a)
<mask token>

import numpy as np
np.random.seed(1000)
s = ['a', 'b', 'c', 'd', 'e']
a = np.random.choice(s, 10)
print(a)
<mask token>

import numpy as np

np.random.seed(1000) # シードの固定

s = ['a', 'b', 'c', 'd', 'e']

a = np.random.choice(s, 10)

print(a)

'''
['d' 'a' 'd' 'e' 'b' 'a' 'b' 'a' 'b' 'e']
'''