generates the randoom data for limited number