Java Random Double randIn(double min, double max)

Here you can find the source of randIn(double min, double max)

Description

rand In

License

Open Source License

Declaration

public static double randIn(double min, double max) 

Method Source Code

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

public class Main {
    public static double randIn(double min, double max) {
        return (max - min) * unitRand() + min;
    }/*from  w  w w  .ja  v  a2s.c  o  m*/

    public static double unitRand() {
        return (double) Math.random();
    }
}

Related

  1. randDouble(double min, double max)
  2. randDouble(double min, double max)
  3. randDouble(double min, double max)
  4. randDouble(double min, double max)
  5. randDouble(int m, int n)
  6. RandInRange(double start, double end)
  7. random(double low, double high)
  8. random(double min, double max)
  9. random(double min, double max)