- Joined
- Nov 24, 2003
- Messages
- 185
- Reaction score
- 0
Ever notice how ?quick-pick? numbers look as if they?re only ?categorically? random in groups? Like for example you get 3 18 25 39 from numbers 1 to 40. Well, I wrote a SAS program that spits out random lottery numbers. You?re all free to use it, and if you win anything, give me at least 10% for my medical education. Otherwise, your family will be cursed.
* POWERBALL RANDOM DIGIT GENERATOR
* PROGRAMMER WOODY
* i=random lottery numbers
* n=powerball;
options nodate nonumber linesize=80 pagesize=52;
data money;
do i=1 to 53;
x=ranuni(0);
output;
end;
do n=1 to 42;
p=ranuni(0);
output;
end;
proc sort; by x p; run;
proc rank; var x ; run;
proc print; var i n x p; run;
* POWERBALL RANDOM DIGIT GENERATOR
* PROGRAMMER WOODY
* i=random lottery numbers
* n=powerball;
options nodate nonumber linesize=80 pagesize=52;
data money;
do i=1 to 53;
x=ranuni(0);
output;
end;
do n=1 to 42;
p=ranuni(0);
output;
end;
proc sort; by x p; run;
proc rank; var x ; run;
proc print; var i n x p; run;