Randomizing a sequence item in Hierarchical Sequences

In reply to prashanthiyer90:

You should clean up your code first.
For example look here:

task cM2Seq::body();

you are mixing here the names.

BTW please format your code as SystemVerilog.