How to pass a variable to covergroup with sample function

In reply to dave_59:
Timer_count value is 32 bit random value. It can be any value between 0 to 2^32. I want to sample timer count with respect to max.i want to know how to pass max value from test.