Define integer range in Systemverilog

In reply to moustafaali:

integer cntr;
assert #0 (cntr inside ([0:20]);