Skip to content

Instantly share code, notes, and snippets.

@davidmdem
Last active February 6, 2017 02:41
Show Gist options
  • Select an option

  • Save davidmdem/e3b742606cc8a4a2783a3e4549002c74 to your computer and use it in GitHub Desktop.

Select an option

Save davidmdem/e3b742606cc8a4a2783a3e4549002c74 to your computer and use it in GitHub Desktop.
PowerShell script to create a file full of random numbers between 0 and 1.
$file = "E:\numbers.txt"
for ($i=0; $i -le 10000000; $i++) {
$a = Get-Random -Minimum 0.0 -Maximum 1.0
Add-Content $file $a.ToString("0.00")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment