Updates to random util. Maybe I should make this a seperate project, could be useful...