import matplotlib.pyplot as plt
import numpy as np
x = np.arange(6) + 1
fx = np.ones(6) * 1/6
(array([1, 2, 3, 4, 5, 6]),
 array([0.16666667, 0.16666667, 0.16666667, 0.16666667, 0.16666667,
        0.16666667]))
plt.scatter(x, fx, color = "orange", label = "uniform density")
plt.scatter(np.arange(5) + 1, np.ones(5) / 5, label = "other")
plt.ylabel("density")
plt.xlabel("support")
plt.legend()

rng = np.random.default_rng()
rng.integers(5, size = 10)
array([3, 2, 3, 2, 0, 1, 3, 1, 1, 2])