hello,
if you look at ballardw answer, it may be just what you are looking for.
I build a macro, where distribution for which rand function has the same formula are passed to a macro variable.
anyway, depending on distributions you want to store, it should be improved.
[pre]
%macro test;
%let x=table,Normal;
%let a=%sysfunc(countw(%NRQUOTE (&x),%NRQUOTE (,)));
%do i=1 %to %eval(&a);
data %scan(%NRQUOTE (&x),%eval(&i),%NRQUOTE (,));
x=%sysfunc(rand (%scan(%NRQUOTE (&x),%eval(&i),%NRQUOTE (,)),0,1));
run;
%end;
%mend test;
%test
[/pre]
Marius