get rand working