Skip to content

Instantly share code, notes, and snippets.

@statgeek
Created August 27, 2017 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save statgeek/8a9e15cd823aaf7b54c2d5b1bc6faab1 to your computer and use it in GitHub Desktop.
Save statgeek/8a9e15cd823aaf7b54c2d5b1bc6faab1 to your computer and use it in GitHub Desktop.
SAS - create random numbers for each observation
/*How to create 50 random numbers for every observation in your data set */
data want;
set sashelp.class;
do i=1 to 50;
zv = rannor(0);
output;
end;
run;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment