mirror of
https://github.com/correl/riichi.git
synced 2024-11-14 19:19:31 +00:00
Fix deprecated call to random
This commit is contained in:
parent
47d2d56c02
commit
53c94f05b1
1 changed files with 1 additions and 1 deletions
|
@ -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() ->
|
||||
|
|
Loading…
Reference in a new issue