I believe that this snippet of code requires SAS 9.4, as earlier versions (e.g., 9.2) return an unresolved module for RANDFUN.