Generate Random Number For Each Row In SQL Server

In many cases, we require to generate a unique but a random number ID for each row of the table. We can generate a random number, using the NEWID() function of SQL Server. Random number generated by NEWID() method will be a 32 byte Hexadecimal number, which is unique for your whole system.
 
Let's take an example.