thorium: fix regression added in 89300f4ee regarding random numbers

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>