Amit Singh
Posted Date
11/9/2010
|
we use rand function in sql server to generate random number
* RAND(seed) - Starting a new sequence of random numbers based on the given integer "seed" and returning the first random number in FLOAT(53) from the sequence.
* RAND() - Returning the next random number in FLOAT(53) from the current sequence. If there has been no current sequence, SQL Server will start a new sequence with a random "seed".
for example:
SELECT RAND(100);
|
|