NumericFunctions { static public String randomNegativeFloat(int whole, int decimal) { return "-" + NumericFunctions.randomPositiveFloat(whole, decimal); }  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 testRandomNegativeFloat_1() throws Exception { int whole = 1; int decimal = 1; String result = NumericFunctions.randomNegativeFloat(whole, decimal); assertTrue(NumberUtils.isCreatable(result)); assertTrue(NumberUtils.toDouble(result) < 0); }