Articles → Numpy → Seed function in NumPy

Seed function in NumPy






Purpose




import numpy as np
import pandas as pd

np.random.rand(4)




Picture showing the random number generated using the random function in numpy

Click to Enlarge



import numpy as np
import pandas as pd

np.random.seed(0) 
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