Minimal random generator with Bays-Durham shuffle