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

Sun Jul 04, 2021 7:10 pm

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.
calvyno
 
Posts: 2
Joined: Sun Jul 04, 2021 7:05 pm

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

Sun Jul 04, 2021 9:24 pm

*2-1
Sadler
 
Posts: 891
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

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

Sun Jul 04, 2021 9:34 pm

... using the Expression modifier
Attachments
+-1.jpg
+-1.jpg (12.59 KiB) Viewed 746 times
Terry Payman
 
Posts: 628
Joined: Sun Sep 14, 2014 8:15 am
Location: UK

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

Sun Jul 04, 2021 10:06 pm

Thanks! Don't know why I didn't think of that expression, but it works!
calvyno
 
Posts: 2
Joined: Sun Jul 04, 2021 7:05 pm

Return to General Discussion

© 2021 Color & Music, LLC • This web site is mobile-friendly