gave g a Random