removed unnessecary argument to function call of random in example