Fix random number usage in the post-TR1 world.