Created
October 16, 2017 10:55
-
-
Save zkessin/8d0eb3b4e96ccd2c7364152b5267e82f 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
-module(fake). | |
non_duplicate_random(Gen,Len) -> | |
?SHUFFLE(non_duplicate(Gen,Len)). | |
non_duplicate(Gen, Len) -> | |
?LET(A, | |
list(Len,Gen) , | |
lists:usort(A) | |
). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment