Change how to get rand id