python
Dashboard
My Repos
Compilers
Python Online
Node JS Online
Golang Online
codepy
Login
My Repos
Sign Out
Online Python Interpreter
Stop
Run
# import the required libraries import random import matplotlib.pyplot as plt # store the random numbers in a list nums = [] mu = 100 sigma = 50 for i in range(10000): temp = random.normalvariate(mu, sigma) nums.append(temp) # plotting a graph plt.hist(nums, bins = 200) plt.show()
Share this code with others
Public
Clear
My Repos
Repo
Lang
Login
Register
Login
Create a free account. No Credit card info required.
I agree with the Codepy
Term of Service
Sign Up