Dear all a y'all,

I have a list of 25 numbers between 800-19000 that I'm calling randomly'ish.

I want to add some constraints to those numbers:
so for example, I have the number 6569 and by the use of either simple x2 multiplication or dividing I want to shoehorn it into the ranges of 11000-18000 but also 400-800 at the same time.

THe ranges are set but the numbers aren't.  So say sometimes the range 2400-4700 may get a number that is less than the range like 912 and sometimes it will get a number over the range like 13264, so I need a way of Pd recognising whether the number requires multiplication or dividing.

How can I do this?

Bests,

Jbz