Tested knuth_shuffle. Created shared random engine.