+2 votes
in NumPy by
describe the example of seed() function? and how to use it ? why seed()?

1 Answer

0 votes
by
The example of seed() function? and how to use it ? why seed()

np.random.seed(123)

rand_arr4 = np.random.randint(1,100,20)

print(‘\nseed() showing same number only : ‘,rand_arr4)
...