Login
Remember
Register
Ask a Question
describe the example of seed() function? and how to use it ? why seed()?
+2
votes
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
describe the example of seed() function? and how to use it ? why seed()?
seed
function
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 4, 2021
by
sharadyadav1986
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)
...