Consider 0 a valid id for simplicity.  ramdom was duplicated.