On 2/16/2024 5:01 PM, Lameass Larry Piet wrote:
> Hey dumb fucks. You want random days? I'll give you random
> days with one fucking line of bash code:
>
> # /bin/bash
> shuf -n200 -i$(date -d '1970-01-01' '+%s')-$(date -d '2024-02-16' '+%s') \
> | xargs -I{} date -d '@{}' '+%d/%m/%Y'
The Feeb innovation and creativity never ceases to amaze...
> Output shown below.
>
> Note: For dates before the Unix epoch it needs some tweaking, but
> I'll allow you dumb shits to figure it out.
Fix your shit-code yourself.
> Ahahahahahahahahahahahahahahahahahahahahaha!
>
> GNU/Linux: designed for supermen.
>
> Microslop Winblows: designed for crippled pussies.
1 line of intuitive Microsoft PowerShell makes mincemeat of your clumsy,
unreadable GuhNoo bash:
$b=[DateTime]"1960-01-01"; $e=[DateTime]"2024-12-31"; $cnt=1; $dates =
1000; while($cnt-le $dates) {$rdate = [DateTime](Get-Random -Minimum
$b.Ticks -Maximum $e.Ticks); $rdate.ToString("yyyy-MM-dd"); $cnt++;}
No tweaking necessary to handle an "epoch", of course.
To output the randoms in sorted order:
$b=[DateTime]"1960-01-01";$e=[DateTime]"2024-12-31";$cnt=1;$dates=1000;$arr=@();while($cnt-le
$dates) {$rdate = [DateTime](Get-Random -Minimum $b.Ticks -Maximum
$e.Ticks);$arr+=$rdate.ToString("yyyy-MM-dd");$cnt++;} $arr|Sort-Object;
bash severely pwned by PowerShell