Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#10224006 Samuel Andrew
import random as rd
import matplotlib.pyplot as plt
# 1. Uniform Distribution
r1 = [rd.uniform(1, 100) for i in range(10000)]
plt.hist(r1, bins=100)
plt.title("Uniform Distribution")
plt.show()