3 ms·Oh, so it always rounds down to zero, that's pretty bad. Casting it to a double would help right?by __mark 15y agoOh, so it always rounds down to zero, that's pretty bad. Casting it to a double would help right?Thasc 15y agoInstead of int runs = (int) Math.random() * 1000000; You'd do int runs = (int) (Math.random() * 1000000);Confusion 15y agoThat would be pointless, because Math.round already returns a double.