Okay… Im missing something here:
If I use random(3), I get a value between 0 and 2, just the way it is supposed to be.
random() has been deprecated, so we really should not use it. Right? Knowing this, I said: "okay, I’ll use Math.random(), the new, more robust cousin of random().
If I use Math.round(3), my values are always less than 1.
I looked in the reference, and it says…
Method; returns n, where 0 <= n < 1.
I dont understand where the problem is… Do you guys know?
Oh, and I tried to round the number, so I only get either 0 or 1.