Randomize lines in CSV file wiht Powershell
# Change the Import-CSV and Export-CSV file paths as needed
$InputList = Import-CSV "C:\path\to\csv file\filename.csv"
$InputList = $InputList | Sort-Object {Get-Random} | Export-CSV "C:\path\to\csv file\filename_randomized.csv"
Comments