made shuffle use bprmf's random instance