Guest User

Untitled

a guest
Apr 26th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. function load() {
  2. setTimeout(function() {
  3. var get_year = new Date();
  4. var speed = Math.round(Math.random() * (100 - 1) + 1);
  5. var heat = Math.round(Math.random() * (50 - 1) + 1);
  6. var telepathy_powers = Math.round(Math.random() * (50 - 1) + 1);
  7. var year = get_year.getFullYear();
  8. var hour = Math.round(Math.random() * (23 - 1) + 1);
  9. var minute = Math.round(Math.random() * (59 - 1) + 1);
  10. var day = Math.round(Math.random() * (30 - 1) + 1);
  11. var month = Math.round(Math.random() * (12 - 1) + 1);
  12. var timestamp = year + '-' + month + '-' + day + ' ' + hour + ':' + minute + '+0000';
  13. database.populateData(first_name, last_name, timestamp, heat, location, speed, telepathy_powers);
  14. load();
  15. }, 50);
  16. }
Add Comment
Please, Sign In to add comment