add plrand and splrand