-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenesis.js
31 lines (30 loc) · 1.05 KB
/
genesis.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
'use strict';
module.exports = {
long: () => {
return Math.floor((Math.random()*360-180)*1000000)/1000000;
},
lat: () => {
return Math.floor((Math.random()*180-90)*1000000)/1000000;
},
uri: () => {
return "image:https://mate-ist-toll.org/"+(Math.floor(Math.random()*(3483948394-1000000))+1000000).toString();
},
ip: () => {
return (Math.floor(Math.random()*(254-2))+2).toString()
+"."+(Math.floor(Math.random()*(254-2))+2).toString()
+"."+(Math.floor(Math.random()*(254-2))+2).toString()
+"."+(Math.floor(Math.random()*(254-2))+2).toString();
},
time: () => {
return Date.now() - Math.floor(Math.random()*437431344);
},
counter: () => {
return Math.floor(Math.random()*(10000-500))+500;
},
color: () => {
let r = Math.floor(Math.random()*255).toString(16);
let g = Math.floor(Math.random()*255).toString(16);
let b = Math.floor(Math.random()*255).toString(16);
return "#".concat(r,g,b);
}
};