Answers for "python plot n numbers from normal distribution"

-1

python plot n numbers from normal distribution

import numpy as np
import matplotlib.pyplot as plt

def get_normal(n):
  mu,sigma = 10,1
  s = np.random.normal(mu, sigma, n)
  plt.hist(s, density=True)
  plt.show()

get_normal(100)
Posted by: Guest on March-30-2022

Code answers related to "python plot n numbers from normal distribution"

Python Answers by Framework

Browse Popular Code Answers by Language