In SQL Server, the T-SQL RAND()
function allows you to generate a random number. Specifically, it returns a pseudo-random float value from 0 through 1, exclusive.
The function accepts an optional argument which provides the seed value. For any given seed value, the results will always be the same.