Java Random random()

Here you can find the source of random()

Description

random

License

Apache License

Declaration

public static double random() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

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

Related

  1. randAngle()
  2. randFloat(float min, float max)
  3. random()
  4. random()
  5. random()
  6. random(E[] elements)
  7. random(final char[] chars)
  8. random(float min, float max)
  9. random(float theStart, float theEnd)