Skip to content

Instantly share code, notes, and snippets.

@torgro
Last active September 19, 2016 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torgro/2bca2eeeca14c5773ba5f9b4f4f55bf5 to your computer and use it in GitHub Desktop.
Save torgro/2bca2eeeca14c5773ba5f9b4f4f55bf5 to your computer and use it in GitHub Desktop.
$csvObjects = foreach($int in (0..10000))
{
$date = get-date
[pscustomobject]@{
id = (10000+$int)
Msg = "this belongs to id $int"
Date = $date.AddDays(2000-$int)
Random = get-random
ticks = $date.Ticks
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment