Set the random range from -0.5 (or whatever below 0) till 1. Then: if < 0
set to -1


Olivier Jeannel <[email protected]> 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 0 1 or -1 to be returned.
>
> How do I do something like that ?
>
> Thank you !
>

Reply via email to