Randomness of data

How to check randomness of discrete data.

The critical values i have in one column as "inwarranty" and "outwarranty"

please suggest,as questions were asked to prove that whatever surveys are done on discrete data are random
How to check the sample size with below values
1)Average population:0.1 mil

please suggest the sample size calculation formula ,when population is known