b<-sample(1:9,size=3,replace=FALSE) , that means creating 1 set with 3 elements, every element is randomly selected from 1 to 9, and each element is different with the other two in the set(non-replacement sampling).
If you have SAS/IML 12.1 (released with SAS 9.3M2), use the SAMPLE function.
SAS INNOVATE 2024
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.