Java Random random()

Here you can find the source of random()

Description

random

License

Open Source License

Declaration

public static double random() 

Method Source Code

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

public class Main {
    public static double random() {
        return Math.random();
    }/*from   w  w  w  .j a v a2  s . c o  m*/

    public static double random(double from, double to) {
        return (to - from) * Math.random() + from;
    }
}

Related

  1. permute(Object[] arr, Random random)
  2. rand()
  3. Rand()
  4. randAngle()
  5. randFloat(float min, float max)
  6. random()
  7. random()
  8. random()
  9. random(E[] elements)