I tried to find such thing from net but I could not.
Here is my try
declare @t table (number int primary keY)
insert @t values(1)
, (2),(3),(4),(5),(6),(7),(8),(9),(10)
select number
, random_positive_or_negative_1 =
case when right(convert(varchar,RAND(CAST( NEWID() AS varbinary ))),1)
in (0,2,4,6,8) then 1 else -1 end
from @t
I am not happy about
case when right(convert(varchar,RAND(CAST( NEWID() AS varbinary ))),1)
in (0,2,4,6,8) then 1 else -1 end
and also not sure if it is reliable.