* @return double
   */
  public static double randomFloat(double n) {
    if (n > 32768) {
      throw ((StellaException)(StellaException.newStellaException("random: Can only generate random numbers between 0 and (2^15)-1.").fillInStackTrace()));
    }
    return (n * (Stella.random(32768) / 32767.0));
  }