Articles → Numpy → Seed Function In Numpy

Seed Function In Numpy






Purpose




import numpy as np

print(np.random.rand(4))




Picture showing the random number generated using the random function in numpy
Click to Enlarge



import numpy as np


np.random.seed(0) 
print(np.random.rand(4))




Picture showing the output of seed function in numpy
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, April 10, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250