Update Config class and random number generation.