Creates random element extension (#196)
This commit is contained in:
parent
0926b5abaa
commit
4403d6c1c7
84 changed files with 226 additions and 330 deletions
|
|
@ -22,11 +22,10 @@ namespace Server.Engines.Mahjong
|
|||
|
||||
public MahjongTileType Next()
|
||||
{
|
||||
int random = Utility.Random(LeftTileTypes.Count);
|
||||
MahjongTileType next = LeftTileTypes[random];
|
||||
LeftTileTypes.RemoveAt(random);
|
||||
MahjongTileType next = LeftTileTypes.RandomElement();
|
||||
LeftTileTypes.Remove(next);
|
||||
|
||||
return next;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue