@Test public void testRandomDirection() { int nextTurn; for (int i = 0; i < 1000; i++) { nextTurn = Move.randomDirection(); assertEquals(true, nextTurn == Move.UP || nextTurn == Move.DOWN || nextTurn == Move.LEFT || nextTurn == Move.RIGHT); assertEquals(true, nextTurn != Move.WAIT && nextTurn != Move.IDLE); } }
public static int randomDirection() { return GameEngine.getRng().nextInt(3) + 2; }
Move { public static int randomDirection() { return GameEngine.getRng().nextInt(3) + 2; } }
Move { public static int randomDirection() { return GameEngine.getRng().nextInt(3) + 2; }  }
Move { public static int randomDirection() { return GameEngine.getRng().nextInt(3) + 2; }  static final int from(final squidpony.squidgrid.Direction _d); static int randomDirection(); static String toString(final int direction); }
Move { public static int randomDirection() { return GameEngine.getRng().nextInt(3) + 2; }  static final int from(final squidpony.squidgrid.Direction _d); static int randomDirection(); static String toString(final int direction); static final int IDLE; static final int WAIT; static final int UP; static final int DOWN; static final int LEFT; static final int RIGHT; }