updated random numbers with a public class