Probabilistic function in Verilog

In reply to sush:

Above code will generate random value between 1 to 10 for each repeat count.
Can you explain more in detail.
Like what is your behavior and what you are looking for ?

Thanks,
Harsh