davidemerli/RL-generator-2020-2021

Wrong value in randint

Closed this issue · 2 comments

return [cols, rows] + [randint(0, 256) for _ in range(rows * cols)]

I think that the values in the random.randint functions should be 0,255 and not 0,256 just because 256 is not a possible value.

Yeah you're right, I also corrected the same thing with the other range (1, 128) since I mistakenly assumed the randint behaved like range, but forgot about this.

Will fix right now

Done