import random import matplotlib.pyplot as plt # This library might need installation in some online compilers
signal = [] for i in range(100): sample = random.uniform(-5, 5) signal.append(sample)
plt.plot(signal) plt.xlabel('Sample Number') plt.ylabel('Voltage (V)') plt.title('Random Signal') plt.grid(True) plt.show()