NumericFunctions { static public String randomPositiveWhole(int length) { if (length == 0) { return ""; } StringBuilder output = new StringBuilder(length); output.append(rnd.nextInt(8) + 1); for (int i = 0; i < length - 1; i++) { output.append(rnd.nextInt(9)); } return output.toString(); }  static boolean isValid(String[] values); static String executeFunction(String[] values, Variables variables); static String randomPositiveWhole(int length); static String randomNegativeWhole(int length); static String randomPositiveFloat(int whole, int decimal); static String randomNegativeFloat(int whole, int decimal);  }
@Test public void testRandomPositiveWhole_1() throws Exception { int length = 0; String result = NumericFunctions.randomPositiveWhole(length); assertEquals("", result); }
@Test public void testRandomPositiveWhole_2() throws Exception { int length = 1; String result = NumericFunctions.randomPositiveWhole(length); assertTrue(NumberUtils.isCreatable(result)); }
@Test public void testRandomPositiveWhole_3() throws Exception { int length = 1; String result = NumericFunctions.randomPositiveWhole(length); assertTrue(NumberUtils.isCreatable(result)); }