Allow rng to accept parameters in swapped order

Adresses issue #420.