added back get rand