Be careful with that - Randomize Value by Range does not work well with 
integers. It's better to work with scalars then round or floor.

gray

From: [email protected] 
[mailto:[email protected]] On Behalf Of Olivier Jeannel
Sent: Wednesday, May 09, 2012 03:02 PM
To: [email protected]
Subject: Re: Random Values

Even simpler (sorry for the noise)
[cid:[email protected]]
will output randomly 0 or 90 or -90 or 180

Le 09/05/2012 20:51, Olivier Jeannel a écrit :
Thank you all for the good read :)

This helped me clarify what I really had in mind. So, basicly I was looking for 
a node that would randomly output a few preselected numbers (and only those 
numbers).
Here's a screen grab :

So this one will output randomly 0 or 90 or -90 or 180



Le 09/05/2012 20:10, Grahame Fuller a écrit :

That leaves a very small risk that you'll get 2. I would use min and max of 
-1.5 and 1.5, and round instead.



gray



From: 
[email protected]<mailto:[email protected]>
 [mailto:[email protected]] On Behalf Of Ciaran Moloney

Sent: Wednesday, May 09, 2012 02:01 PM

To: [email protected]<mailto:[email protected]>

Subject: Re: Random Values



Hi,

randomise value by range, with min and max set to -1 and 2. Then pass the 
result into a floor node.





On Wed, May 9, 2012 at 6:52 PM, Olivier Jeannel 
<[email protected]<mailto:[email protected]><mailto:[email protected]><mailto:[email protected]>>
 wrote:

Hello list,



Im sure it is easy :



I'm trying to get random (scalar) values distributed on some points.

But I want only values 0 1 or -1 to be returned.



How do I do something like that ?



Thank you !




<<attachment: winmail.dat>>

Reply via email to