[Note] Random number creation?

Probably the code that creates random numbers.

Memorandum code

test2.py



N = 2000
E = 2.5
P = 50
k = 1.96

sample_number = N/((E/k)*(E/k)*(N-1)/(P*(100-P))+1)

print sample_number

Recommended Posts

[Note] Random number creation?
Numpy random module random number generator
[python] Random number generation memorandum
Note
[Note] Django project creation and terminology
random French number generator with python
Note
Pseudo-random number generation and random sampling
Non-overlapping integer random number generation (0-N-1)
Note
Create a 1MByte random number file
Random number generation summary by Numpy
numpy> Random number list output> zip () / print%
Random number generator with normal distribution N (0,1)