W
W
Workguy2020-08-20 15:46:48
Python
Workguy, 2020-08-20 15:46:48

How does a function from a numpy module work?

How does it work and what is responsible for what in the random number generation function?

Code example:

import numpy as np
 
np.random.seed(100)
print(np.random.random(3))

I get:
[0.54340494; 0.27836939; 0.42451759]

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Svetlov, 2020-08-20
@Workguy

see here https://pythonz.net/references/named/random.seed/

D
Deleting Account, 2020-08-20
@Andriy_Kosmenyuk

https://habr.com/en/post/499490/
Here are examples in c++, but numpy is also written in c or c++ as I remember (maybe both)
But about the Fibonacci method with delays

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question