I have a situation where I am considering use of INT (Randomly generated) or GUID as the primary key of a table. I fully realize that a randomly generated INT could create a duplicate but I can easily deal with this and I am prepared to accept this so the chance of a duplicate is not part of the question.
Given that I am okay with the very very small chance of a duplicate INT.
Are there advantages or disadvantages to using INT vs GUID as the primary key or in indexes? Does SQL Server handle one or the other better when it comes to a range search? Does SQL Server have any optimizations for GUID vs INT?