Deleted unused random function