Removed legacy random functions