

"""simple docstring"""




from collections import namedtuple

__UpperCAmelCase =				namedtuple('from_to', 'from_ to')

__UpperCAmelCase =				{
    'cubicmeter': from_to(1, 1),
    'litre': from_to(0.001, 1000),
    'kilolitre': from_to(1, 1),
    'gallon': from_to(0.0_0454, 264.172),
    'cubicyard': from_to(0.7_6455, 1.3_0795),
    'cubicfoot': from_to(0.028, 35.3147),
    'cup': from_to(0.0_0023_6588, 4226.75),
}
def   lowerCAmelCase						(					__UpperCamelCase							,    __UpperCamelCase							,    __UpperCamelCase      ):
 '''simple docstring'''





 if from_type not in METRIC_CONVERSION:
  raise ValueError(
      F"Invalid \'from_type\' value: {from_type!r}  Supported values are:\n"
      + """, """.join(__snake_case      )      )
 if to_type not in METRIC_CONVERSION:
  raise ValueError(
      F"Invalid \'to_type\' value: {to_type!r}.  Supported values are:\n"
      + """, """.join(__snake_case      )      )
 return value * METRIC_CONVERSION[from_type].from_ * METRIC_CONVERSION[to_type].to


if __name__ == "__main__":
  import doctest

  doctest.testmod()








"""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())





