

"""simple docstring"""




from .imports import is_rich_available


if is_rich_available():
      from rich.traceback import install

      install(show_locals=False)

else:
      raise ModuleNotFoundError('To use the rich extension, install rich with `pip install rich`')








"""simple docstring"""




__UpperCAmelCase =				'Tobias Carryer'

from time import time







class      __lowercase			:

  def __init__(  self		:			Union[str, Any]					,A		:			Dict					,A		:			Optional[int]					,A		:			Union[str, Any]					,A		:			int=int(time()    )    ):  # noqa: B008






   '''simple docstring'''
   UpperCAmelCase__					:  int					   =					multiplier
   UpperCAmelCase__					:  Union[str, Any]					   =					increment
   UpperCAmelCase__					:  Dict					   =					modulo
   UpperCAmelCase__					:  Tuple					   =					seed




  def    __lowercase       (  self		:			Dict    ):






   '''simple docstring'''
   UpperCAmelCase__					:  Any					   =					(self.multiplier * self.seed + self.increment) % self.modulo
   return self.seed


if __name__ == "__main__":
      # Show the LCG in action.
      __UpperCAmelCase =				LinearCongruentialGenerator(166_4525, 10_1390_4223, 2 << 31)
      while True:
            print(lcg.next_number())





