Remove unused randomID() function, simplify random()