I need to generate 432 000 random lines of dummy dates and some random process names like (Car1, Dog2, human3) and so on.
Maybe someone knows faster way or tool to do that? Because if I will use AHK it will took me generate and paste all date to Excel ~120 hours?
I need just random dates at the moment.
Processes I probably will do using Array and for loops. If some one have better idea, please share.
Code generates each rando number separate and if value have 1 digits, script adds 0. For February random generator does not work correctly, but it is dummy data so at the moment I do not need this, But if some one have fast solution and how to generate correct dates I would not mind to see
Have a nice weekend
Code: Select all
#SingleInstance, Force
SetKeyDelay, -1
loop, 5
{
Random, incommetMonth, 1, 6
if(incommetMonth~="\d{2}") {
incommetMonth := incommetMonth
} else {
incommetMonth := "0"incommetMonth
}
sleep, 10
Random, incommetDay, 1, 31
if(incommetDay~="\d{2}") {
incommetDay := incommetDay
} else {
incommetDay := "0"incommetDay
}
sleep, 10
Random, incommetH, 0, 23
if(incommetH~="\d{2}") {
incommetH := incommetH
} else {
incommetH := "0"incommetH
}
sleep, 10
Random, incommetMin, 0, 59
if(incommetMin~="\d{2}") {
incommetMin := incommetMin
} else {
incommetMin := "0"incommetMin
}
sleep, 10
Random, incommetSec, 0, 59
Random, incommetSec, 0, 59
if(incommetSec~="\d{2}") {
incommetSec := incommetSec
} else {
incommetSec := "0"incommetSec
}
sleep, 10
varr := incommetDay . "." . incommetMonth . ".2022 " . incommetH . ":" . incommetMin . ":" . incommetSec
Clipboard := varr
;~ send, %incommetDay%.%incommetMonth%.2022 %incommetH%:%incommetMin%:%incommetSec%
;~ send, ^v
;~ Send, {Enter}
MsgBox, %incommetDay%.%incommetMonth%.2022 %incommetH%:%incommetMin%:%incommetSec%
}
^!x::
TrayTip, %A_ScriptName% is closed, `n, 5, 17 ; `n makes empty, 5 means 5 sec, 17 type of icon 18 19 20
/*
SetTimer, HideTrayTip, -2000
HideTrayTip() {
TrayTip
}
*/
ExitApp