declare @randnum int=0declare @startnum int =0declare @endnum int=0
set @startnum = 150
set @endnum = 200
set @randnum = ROUND(((@endnum - @startnum -1) * RAND() + @startnum), 0)select @randnum