Previous topicNext topic

Create a global value that randomly switches between -1 and 1

Questions, comments, feedback, etc.
Post Reply
edwardsjethro
Posts: 1
Joined: Tue Mar 12, 2024 3:43 am

Create a global value that randomly switches between -1 and 1

Post by edwardsjethro »

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: 1143
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

Re: Create a global value that randomly switches between -1 and 1

Post by Sadler »

Screenshot 2024-03-12 200946.jpg
Screenshot 2024-03-12 200946.jpg (12.54 KiB) Viewed 459 times
Post Reply