$ is not working in constraint Inside operator

In reply to dave_59:

rand int i;

constraint c1{ i inside {1,2,[1000:$]};}

Error is unsupported data type in constraint

Regards
Kranthi