Java Random Double randomDoubleBetween(double a, double b)

Here you can find the source of randomDoubleBetween(double a, double b)

Description

random Double Between

License

Open Source License

Declaration

public static double randomDoubleBetween(double a, double b) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double randomDoubleBetween(double a, double b) {
        return (Math.random() * (b - a) + a);
    }/*from ww w.  jav  a2 s . co  m*/
}

Related

  1. randomDouble(double min, double max)
  2. randomDouble(int min, int max)
  3. randomDouble(int start, int end)
  4. randomDoubleArray(final int mDimensionality)
  5. randomDoubleArray(int len)
  6. randomDoubleOperand(Random rnd)
  7. randomFlip(double probTrue)
  8. randomIn(double in)
  9. randomInitialize(double[] base)