• There are different instance of generating id.. Most of which i can replace by identity. But in one case a random number will created by one of method and also it checks in the database to see the random number is previously created.