Java Random Double randomBoth(double range)

Here you can find the source of randomBoth(double range)

Description

random Both

License

Open Source License

Declaration

public static double randomBoth(double range) 

Method Source Code

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

public class Main {
    public static double randomBoth(double range) {
        return (Math.random() * range * 2.0) - range;
    }/*from  w  w  w .ja va 2 s  .  c om*/
}

Related

  1. random(double low, double high)
  2. random(double min, double max)
  3. random(double min, double max)
  4. random(final double min, final double max)
  5. randomBetween(double arg1, double arg2)
  6. randomChance(double chance)
  7. randomColor(double d)
  8. randomDouble()
  9. randomDouble()