Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: LogLady on April 29, 2020, 06:10:48 PM

Title: Random position but excluding some positions
Post by: LogLady on April 29, 2020, 06:10:48 PM
Hi!

Is there an action that I can put a range of values (int or float) but exclude some values from the range or a range within the range to obtain random values? If no action exists who can I achieve this?

Example: range from int -30 to 30 but exclude values from -5 to 10 from the random pool.

Thanks!
Title: Re: Random position but excluding some positions
Post by: TheBadFeeling on April 29, 2020, 07:43:44 PM
I don't know if there's an action that will do that. But it sounds a bit like two random ranges, -30 to -5 and 10 to 30. Maybe you just need to generate two values and then pick one of them.
Title: Re: Random position but excluding some positions
Post by: LogLady on April 29, 2020, 10:04:36 PM
Worked like a charm!
Thanks!