Hi Sucheta,
The error I can see in your code that is because there is no function called randomint .
You can check out this code to remove your error.
import matplotlib.pyplot as plt
import datetime
import numpy as np
import time
def GetRandomIntNumber(Data):
   timerCounter=0
   x=[]
   y=[]
   while timerCounter < 5000:
       NewNumber = Data * np.random.randint(5)
       x.append(datetime.datetime.now())
       y.append(NewNumber)
       plt.plot(x,y)
       plt.show()
       time.sleep(10)
a = 10
GetRandomIntNumber(a)
I hope it will help you, just let me know if it works.