private static int CalNumber() { { Random random = new SystemRandomSource(); decimal MahjongNumber = (random.NextDecimal() * 42) + 1; Math.Round(MahjongNumber); return((int)MahjongNumber); } }
private static int CalNumber() { { Random random = new SystemRandomSource(); decimal MahjongNumber = (random.NextDecimal() * 42) + 1; Math.Round(MahjongNumber); return((int)MahjongNumber); } }