Random of 1 , -1 ? how?

POMPOM Member Posts: 2,599
edited November -1 in Working with GS (Mac)
hey guys, simple question :
how do i make an integer a random of 1 or -1 ?
if i use simple random like random(-1,1) it has the value "0" in it -> no good for me.
is there a simple way?

p.s
please dont say :
change temp to random(0,1)

if 0 :
change to -1

if 1
change to 1
=)

Roy.

Comments

Sign In or Register to comment.