Created
November 4, 2016 12:01
-
-
Save Marenz/a06c0758f614c15abb94b09315a24725 to your computer and use it in GitHub Desktop.
This file contains 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
import std.stdio; | |
import std.random; | |
import std.range; | |
void main () | |
{ | |
auto rnd = new Random(0); | |
auto rnd1 = new Random(0); | |
auto a = iota(10).randomCover(rnd).dropOne.array; | |
auto b = iota(10).randomCover(rnd1).array; | |
writefln("%s\n%s", a, b); | |
assert(a!=b); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment