How to generate random numbers from normal distribution? - The Security Buddy
In Python, we can use the randn() function to generate random numbers from the normal distribution. Here, the randn() function will return 10000 floating point random numbers from the standard normal distribution. Therefore, the mean of the generated numbers will be 0, and the standard deviation will be 1. After generating 10000 such random numbers from the standard normal distribution, we can plot the distribution using a histogram.
Feb-10-2023, 12:17:00 GMT
- Technology: