Fixed math rounding error by using Random.nextInt():
(int) Math.random() * TEST_GRAPH_SIZE / 2 always equals to 0.