Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A common bug in published code. Parent comment
int runs = (int) Math.random() * 1000000;
You'd do
int runs = (int) (Math.random() * 1000000);
There are no comments on this comment yet.
int runs = (int) Math.random() * 1000000;
You'd do
int runs = (int) (Math.random() * 1000000);