mirror of
https://github.com/correl/riichi.git
synced 2024-11-23 11:09:56 +00:00
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:
parent
ce091bb024
commit
b9d4f99f1c
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