new
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
class Float
|
||||
# coding: UTF-8
|
||||
|
||||
class Float
|
||||
|
||||
def self.random_latitude
|
||||
rand(40) * [1,-1][rand(2)] + (rand(10000.0) / 1000.0)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# encoding: utf-8
|
||||
require_relative '../../services/data-repository/backend/sequel'
|
||||
require_relative '../../app/models/visualization/collection'
|
||||
require_relative '../../app/models/synchronization/collection'
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# coding: UTF-8
|
||||
|
||||
class String
|
||||
def self.random(length=10)
|
||||
('a'..'z').sort_by {rand}[0,length].join
|
||||
|
||||
Reference in New Issue
Block a user