:py:mod:`meetupmatcher.pseudorandom`
====================================

.. py:module:: meetupmatcher.pseudorandom


Module Contents
---------------


Functions
~~~~~~~~~

.. autoapisummary::

   meetupmatcher.pseudorandom.get_weeks_since_epoch
   meetupmatcher.pseudorandom.get_random_seed_from_timestamp
   meetupmatcher.pseudorandom.get_seed_from_option
   meetupmatcher.pseudorandom.get_rng_from_seed
   meetupmatcher.pseudorandom.get_rng_from_option



.. py:function:: get_weeks_since_epoch(timestamp: float | None = None) -> int

   Returns the number of weeks since epoch.


.. py:function:: get_random_seed_from_timestamp(timestamp: float | None = None) -> int

   Get random seed from timestamp. If timestamp is None, use current time.


.. py:function:: get_seed_from_option(option: str) -> int

   Get seed from string input specified in command line. Supported options:
   `week` (current week), a number (directly taken as seed), or
   anything that can be parsed by `dateutil.parser.parse`.


.. py:function:: get_rng_from_seed(seed: float) -> numpy.random.Generator


.. py:function:: get_rng_from_option(option: str) -> numpy.random.Generator

   Get random number generator from string input specified in
   command line. See `get_seed_from_option` for supported options.


