Restored functionality to print geometry and weights

Due to migration to the thread safe randon engine geometry printing unit test did not work. These modifications restore these unit tests functionality.