You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# coding: UTF-8
|
|
|
|
class Float
|
|
|
|
def self.random_latitude
|
|
rand(40) * [1,-1][rand(2)] + (rand(10000.0) / 1000.0)
|
|
end
|
|
|
|
def self.random_longitude
|
|
rand(3) * [1,-1][rand(2)] + (rand(10000.0) / 1000.0)
|
|
end
|
|
|
|
end
|