Automatically generates random unique public id for record.