Fixed calls to old random number class