In reply to bmorris:
You could also do
parameter type(ip) max_ip = '1;
...
if(!txn.randomize() with { ip dist { A:=1, B:=1, 0:=1, max_ip:=1, [0:max_ip]:/1 }; })
I wouldn’t use randc on such a large value unless there is a specific requirement for it.
I don’t see why extending a class results in extra config_db accesses. You will have to explain further.