Page 1 of 1

How to Create a Random Number (-1 or 1)?

Posted: Sun Jul 04, 2021 7:10 pm
by calvyno
I want to create a global value that randomly switches between -1 and 1. Anyone know how to go about doing this? So far I've only managed to get a random number of 0 or -1 using random 1.0 and threshold of 0.5.

Re: How to Create a Random Number (-1 or 1)?

Posted: Sun Jul 04, 2021 9:24 pm
by Sadler
*2-1

Re: How to Create a Random Number (-1 or 1)?

Posted: Sun Jul 04, 2021 9:34 pm
by Terry Payman
... using the Expression modifier

Re: How to Create a Random Number (-1 or 1)?

Posted: Sun Jul 04, 2021 10:06 pm
by calvyno
Thanks! Don't know why I didn't think of that expression, but it works!