A Java based GUI to find/show that the random() function is not fully unbiased. After iterating 1000 times we get that some numbers are repeating again and again.
-
First of all run a loop for 1 lac times to get the 4 digit number and find its freq.
-
Repeat above process 1000 times.
-
Count the freq of all the numbers.
-
Output top ten frequent numbers as input.
-
we will see that many numbers are repeating again and again.