In reply to Bruno Müller.

Except that user-written functions aren't usable within SQL. But this works just fine:

proc sql; create table foon as
SELECT %RandBetween(10**12, (10**13)-1) as claim,...