Previous topicNext topic

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

Questions, comments, feedback, etc.
Post Reply
calvyno
Posts: 2
Joined: Sun Jul 04, 2021 7:05 pm

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

Post 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.
Sadler
Posts: 1139
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

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

Post by Sadler »

*2-1
Terry Payman
Posts: 710
Joined: Sun Sep 14, 2014 8:15 am
Location: UK
Contact:

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

Post by Terry Payman »

... using the Expression modifier
Attachments
+-1.jpg
+-1.jpg (12.59 KiB) Viewed 4390 times
calvyno
Posts: 2
Joined: Sun Jul 04, 2021 7:05 pm

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

Post by calvyno »

Thanks! Don't know why I didn't think of that expression, but it works!
Post Reply