Correctly translate mutable RNG to immutable RNG

Signed-off-by: Gary Pamparà <gpampara@gmail.com>
Added shuffling related test

Signed-off-by: Gary Pamparà <gpampara@gmail.com>
Update build to cater for 'example' subproject.

Signed-off-by: Gary Pamparà <gpampara@gmail.com>