Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
describe the example of seed() function? and how to use it ? why seed()?
Home
NumPy
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)
Related questions
+1
vote
Q: Write a function, which will take in a value and print out if it is even or odd.
asked
Feb 15, 2021
in
Python
by
SakshiSharma
#python-function
even-odd-function
python
function
Python-questions-answers
0
votes
Q: Which of the following clustering representations and dendrogram depicts the use of MIN or single link proximity function in hierarchical clustering?
asked
Mar 20, 2023
in
Clustering - The Data Ensemble
by
john ganales
clustering
representations
dendrogram
proximity
function
0
votes
Q: Write syntax to use grep function?
asked
Jul 26, 2023
in
Perl
by
rahuljain1
grep
function
+1
vote
Q: Write a function to simulate the overlap of two computing jobs and output an estimated cost.
asked
Oct 28, 2022
in
Python
by
SakshiSharma
python
function
0
votes
Q: Write a function to generate N samples from a normal distribution and plot them on the histogram.
asked
Oct 28, 2022
in
Python
by
SakshiSharma
python
function
plot
histogram
0
votes
Q: Explain how you will explain a function in Scala.
asked
Sep 11, 2022
in
Scala Constructs
by
sharadyadav1986
scala
function
0
votes
Q: The ” var” and “function” are known as _____________.
asked
Dec 1, 2022
in
JavaScript
by
john ganales
var
function
javascript
0
votes
Q: Which function removes a set’s first and the last element from a list?
asked
Aug 22, 2022
in
Python
by
Robindeniel
python
function
0
votes
Q: The "function" and " var" are known as:
asked
Mar 20, 2021
in
JavaScript
by
sharadyadav1986
javascript
javascript-var
javascript-function
function
0
votes
Q: Explain what Is The Basic Difference Between Procedure And Function?
asked
Mar 18, 2021
in
PL/SQL
by
sharadyadav1986
#procedure
function
plsql-procedure
...