Greetings Sameet:
When checking for "randomness" of data the first module that comes into my mind is
Statistics::Chisquare, however, I if I were you I would conduct a generalized search on
CPAN for
Statistics modules. The search will yield a whole host of additional modules that I am certain you will find quite useful to your current task and perhaps future ones as well.