I've made some code in sql server to get random float numbers. It pass rage and out a number, but it shows syntax error. Can someone show me, where it is and how I shoul correct it? That's my code
CREATE PROCEDURE getAmount( @MinVal float,
@MaxVal float)
@out float OUTPUT
AS
SELECT @out = ((@MaxVal - @MinVal)
* RAND() + @MinVal)
RETURN