[...] wonder whether you can use this operation as a sampling method. Yes! This technique is one way to sample with replacement in the SAS/IML language. Sampling from x is easy: randomly generate N integer values between 1 and ncol(x), and use those …