Hallo everybody,
i guess it's an easy question but i couldn't find the answer yet:
I want a Domain that goes from 3 to -3 to put it into a random application and just includes the integer numbers (-3;-2;-1;0;1;2;3) and beside that i don't want to have 0 as a result.
So at the End I would like to have only 6 numbers: -3;-2;-1;1;2;3
I already came to an result with integer numbers but it actually only rounded up the random results. when one of the results was -0.473 it ended up as 0.
I'm sure it's pretty easy to solve, I'm just missing something.
thx for help
David Rutten
"random application"?
Could you generate the numbers 1, 2, 3 and then reverse the list, negate the values and glue the lists together?
Apr 29, 2015
Riccardo Majewski
I'm not sure to get what you need, but maybe this will be helpful....
Creating -3 to +3 w/o 0 list as said by Daivd.
Then if you want random elements from that list, just use random values from 0 to 5 as indexes to list out them:
Or, even simpler, create random values in a shorter domain, and after "split and diverge" values to skip 0.
All values under 0 will remain the same (false = +0) while values above 0 will be "shifted up" by +1(true), reaching your domain length wanted:
Apr 29, 2015
JJK
thanks guys.
i found out, that the "random"-component (not application, i just forgot the word) has with right click on it an option for "integer numbers". and i decided that the null could be a result as well.
now i have other problems^^ I'll try to fix them on my own first, so see ya
Apr 30, 2015