Random Values

2012-05-09 Thread Olivier Jeannel
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 !

Re: Random Values

2012-05-09 Thread Thomas Volkmann
Set the random range from -0.5 (or whatever below 0) till 1. Then: if 0 set to -1 Olivier Jeannel olivier.jean...@noos.fr hat am 9. Mai 2012 um 19:52 geschrieben: Hello list, Im sure it is easy : I'm trying to get random (scalar) values distributed on some points. But I want only values

Re: Random Values

2012-05-09 Thread Thomas Volkmann
Just saw that you don't want 0-1, but 0 and 1. So basically the same... or set random range -1 till 1 and use round? Or why not getting a random integer and convert to scalar? Olivier Jeannel olivier.jean...@noos.fr hat am 9. Mai 2012 um 19:52 geschrieben: Hello list, Im sure it is easy :

Re: Random Values

2012-05-09 Thread Renaud Bousquet
Hey! Have you tried to use a randomize value by range with integer as input then use integer to scalar? or round the result of a randomize valur by range using scalar value. Hope it help! RB On 5/9/2012 1:52 PM, Olivier Jeannel wrote: Hello list, Im sure it is easy : I'm trying to get

RE: Random Values

2012-05-09 Thread Grahame Fuller
@listproc.autodesk.com 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 olivier.jean...@noos.frmailto:olivier.jean...@noos.fr wrote: Hello list, Im sure it is easy

Re: Random Values

2012-05-09 Thread Alok Gandhi
Also, little long winded but you can use make an array with -1, 0, 1 and use select in array with index coming from randomize value by range between 0 and 2.

Re: Random Values

2012-05-09 Thread Olivier Jeannel
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 olivier.jean...@noos.frmailto:olivier.jean...@noos.fr wrote: Hello list, Im sure it is easy : I'm trying to get random

RE: Random Values

2012-05-09 Thread Grahame Fuller
03:02 PM To: softimage@listproc.autodesk.com Subject: Re: Random Values Even simpler (sorry for the noise) [cid:image001.png@01CD2DF5.7A5F3630] 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

RE: Random Values

2012-05-09 Thread Grahame Fuller
Ah right. Gotcha. From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Steven Caron Sent: Wednesday, May 09, 2012 03:42 PM To: softimage@listproc.autodesk.com Subject: Re: Random Values sorry it was a suggestion... we need a factory random