:py:mod:`km3astro.random` ========================= .. py:module:: km3astro.random .. autoapi-nested-parse:: Random sampling utilities. .. !! processed by numpydoc !! Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: km3astro.random.random_azimuth km3astro.random.random_zenith km3astro.random.second_from_interval km3astro.random.equidistant_from_interval km3astro.random.random_date .. py:function:: random_azimuth(n=1, unit='rad') Draw azimuth, uniformly distributed. .. !! processed by numpydoc !! .. py:function:: random_zenith(n=1, unit='rad') Draw zenith, uniformly distributed in cos(zen). .. !! processed by numpydoc !! .. py:function:: second_from_interval(start, stop, n=1, **randargs) Sample random times from an interval (in seconds). .. !! processed by numpydoc !! .. py:function:: equidistant_from_interval(start, stop, step=np.timedelta64(2, 'm')) Draw equidistant samples (fixed stepsize) from interval. .. !! processed by numpydoc !! .. py:function:: random_date(n=1, year=2015, astropy_time=False, **randargs) Create random dates in the given year. :Parameters: **year: int, default: 2015** .. **n: int, default: 1** .. .. !! processed by numpydoc !!