tsql random number between 1 and 100 code example Example: tsql random number SELECT FLOOR(RAND()*(b-a+1))+a;