Print

Print


On May 17, 2013, at 5:49 AM, Bojan Janisch wrote:

> I want to get a random Number (0-N) while setting up or evaluating a 
> node in a GPTree. I tried state.random[0].nextInt(N) but this seems 
> to give me always the same number while walking through a tree.

This would be impossible.  state.random[0].nextInt(...) always gives different values (unless N=1 I guess :-)

Sean