From c4545ab1145c57fe4b262967c3632ee1a8fb5102 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Mon, 25 May 2020 11:49:15 +0300 Subject: [PATCH] extract more code to pysol_cards --- pysollib/pysolrandom.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/pysollib/pysolrandom.py b/pysollib/pysolrandom.py index 195b085e..27642863 100644 --- a/pysollib/pysolrandom.py +++ b/pysollib/pysolrandom.py @@ -26,7 +26,7 @@ import re import pysol_cards -assert getattr(pysol_cards, 'VERSION', (0, 0, 0)) >= (0, 8, 11), ( +assert getattr(pysol_cards, 'VERSION', (0, 0, 0)) >= (0, 8, 12), ( "Newer version of https://pypi.org/project/pysol-cards is required.") import pysol_cards.random # noqa: I100 import pysol_cards.random_base # noqa: I100 @@ -52,16 +52,6 @@ class MFXRandom(pysol_cards.random.PysolRandom): def setstate(self, state): self.seed = state - # - # implementation - # - - def choice(self, seq): - return seq[int(self.random() * len(seq))] - - def randrange(self, a, b): - return self.randint(a, b-1) - # ************************************************************************ # * Linear Congruential random generator