Closed PatrizioG closed 1 year ago
Hi, in the example I.1: Traditional random walk, the step method with floats it's wrong:
float stepx = random(-1, 1); float stepy = random(-1, 1);
I think that the correct code is
float stepx = random(-1, 2); float stepy = random(-1, 2);
These examples have changed and are being updated in https://github.com/nature-of-code/book-website-2nd-edition!
Hi, in the example I.1: Traditional random walk, the step method with floats it's wrong:
float stepx = random(-1, 1); float stepy = random(-1, 1);
I think that the correct code is
float stepx = random(-1, 2); float stepy = random(-1, 2);