Random Number Plot

import numpy as np
import matplotlib.pylab as plt
a = np.random.randint(10, size=20)
a
array([2, 5, 5, 4, 9, 0, 4, 9, 0, 1, 9, 7, 9, 7, 1, 5, 7, 0, 8, 2])
plt.plot(a, np.sin(a))
plt.show()

png