Use the updated rand library

The random module is deprectated. As a bonus, the newer module
generates a random seed for us by default, too, ensuring actual random
behavior.
This commit is contained in:
Correl Roush 2017-08-29 11:09:04 -04:00
parent ce091bb024
commit b9d4f99f1c

View file

@ -169,7 +169,7 @@ find_sets(Tiles) ->
-spec shuffle(list()) -> list(). -spec shuffle(list()) -> list().
shuffle(List) -> shuffle(List) ->
[X || {_, X} <- lists:sort([{random:uniform(), I} || I <- List])]. [X || {_, X} <- lists:sort([{rand:uniform(), I} || I <- List])].
-spec tiles() -> [string()]. -spec tiles() -> [string()].
tiles() -> tiles() ->