Last active
February 6, 2017 02:41
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $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