There's no reason for randgur() to be global