alias crand { if $1 !isnum { return $false } var %i = 1,%b = $1,%c = 9, %r while %i <= %b { set %r $addtok(%r,$r(%i,%c),0) inc %i } echo -a %r }
also does the job :> syntax: /crand I.e /crand 5 = 74557