/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static double aleatorioEntre(double min, double max){
return random.nextDouble() * (max-min) + min;
}
{
double randomLatitude = aleatorioEntre(-9.5, -6.2);
double randomLongitude = aleatorioEntre(36.8, 42.2);
System.
out.
println(randomLatitude
); System.
out.
println(randomLongitude
); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXN0YXRpYyBSYW5kb20gcmFuZG9tID0gbmV3IFJhbmRvbSgpOwoJCglwdWJsaWMgc3RhdGljIGRvdWJsZSBhbGVhdG9yaW9FbnRyZShkb3VibGUgbWluLCBkb3VibGUgbWF4KXsKCQlyZXR1cm4gcmFuZG9tLm5leHREb3VibGUoKSAqIChtYXgtbWluKSArIG1pbjsKCX0KCQoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJZG91YmxlIHJhbmRvbUxhdGl0dWRlID0gYWxlYXRvcmlvRW50cmUoLTkuNSwgLTYuMik7CgkJZG91YmxlIHJhbmRvbUxvbmdpdHVkZSA9IGFsZWF0b3Jpb0VudHJlKDM2LjgsIDQyLjIpOwoJCQoJCVN5c3RlbS5vdXQucHJpbnRsbihyYW5kb21MYXRpdHVkZSk7CgkJU3lzdGVtLm91dC5wcmludGxuKHJhbmRvbUxvbmdpdHVkZSk7Cgl9Cn0=