In reply to kathula venkatesh:
randomization gives only 2-state value i.e a bit would be either 0 OR 1 .
( Even if you declare variable as :: rand logic !! )
You would have to write some logic in post_randomize() .
I have seen code with randsequence too