Fix deprecated call to random

This commit is contained in:
Correl Roush 2017-11-21 20:48:19 -05:00
parent 47d2d56c02
commit 53c94f05b1

View file

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