Created
June 9, 2017 17:37
-
-
Save JohnL4/879024feabdcd44f35012ce70867d680 to your computer and use it in GitHub Desktop.
PowerShell snippet to quickly gin up a new random number.
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
(new-object Random).Next() | |
# Or... | |
$n = 9999999999 | |
[Math]::Floor((new-object Random).NextDouble() * $n) + 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment