Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let characters = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
- "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
- let result = "";
- function createRandomMessage(min, max){
- let message = "'";
- let amount = Math.floor(Math.random() * (max - min) + min);
- for(let i=0; i < amount; i++){
- let index = Math.floor(Math.random() * characters.length);
- message += characters[index];
- }
- message += "'"
- return message;
- }
- function getRandomTimestamp(){
- let dateDivider = '-';
- let timeDivider = ':';
- let today = new Date();
- let result = "'" + today.getFullYear() + dateDivider + (today.getMonth() + 1) + dateDivider + today.getDate() + " " + Math.floor(Math.random() * 12 + 10) + timeDivider + Math.floor(Math.random() * 49 + 10) + timeDivider + Math.floor(Math.random() * 49 + 10) + "'";
- return result;
- }
- function addToResult(){
- for(let i=0; i < 1000; i++){
- result = result + "(" + createRandomMessage(1,10) + ", " + characters[Math.floor(Math.random() * 5 + 1)] + ", " + getRandomTimestamp() + "),\n";
- }
- }
- addToResult();
- copy(result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement