Your IP : 18.118.32.6
�
�Q�f{� � �\ � d dl mZ d dlmZmZmZ m
ZmZ
d dlmZmZmZmZ d dlmZmZmZ d dlmZmZm Z! d dl"m#Z$ d dl%m&Z' d dl(m)Z* d d l+m,Z-m.Z/ d d
l0m0Z1 d dl"Z2d dl3Z3 d dl4m5Z6 g d
�Z9d ed� z ed� z Z: ed� Z;d ed� z Z<dZ=de= z Z>dZ? G d� de3j� � Z@ G d� de@� ZA e@� ZBeBj� ZCeBj� ZDeBj� ZEeBj� ZFeBj� ZGeBj� ZHeBj� ZIeBj� ZJeBj� ZKeBj� ZLeBj� ZMeBj� ZNeBj� ZOeBj� ZPeBj� ZQeBj� ZReBj� ZSeBj� ZTeBj� ZUeBj� ZVeBj� ZWeBj� ZXeBj� ZYeBj� ZZd� Z[d d�Z\ e]e2d� r e2j� eBj� �� e_dk( r e\� yy# e7$ r
d dl8m5Z6 Y ���w xY w)!� )�warn)�log�exp�pi�e�ceil)�sqrt�acos�cos�sin)�tau�floor�isfinite)�lgamma�fabs�log2)�urandom)�Sequence)�index)�
accumulate�repeat)�bisectN)�sha512)�Random�SystemRandom�betavariate�binomialvariate�choice�choices�expovariate�gammavariate�gauss�getrandbits�getstate�lognormvariate�
normalvariate�
paretovariate� randbytes�randint�random� randrange�sample�seed�setstate�shuffle�
triangular�uniform�vonmisesvariate�weibullvariate� g �� @� @� �?� @�5 � � c � � � e Zd Z dZd#d�Zd$� fd� Z� fd�Z� fd�Zd� Zd� Z d � Z
d
� Zd� Zde
z fd
�ZeZd� Zdefd�Zd� Zd� Zd� Zdd�d�Zd#ddd�d�Zd� Zd%d�Zd&d�Zd&d�Zd� Zd'd�Zd� Zd� Zd� Z d � Z!d!� Z"d(d"�Z#� xZ$S ))r � Nc �6 � | j |� d | _ y �N)r- �
gauss_next)�self�xs �-/opt/alt/python312/lib64/python3.12/random.py�__init__zRandom.__init__~ s � � �
� � �!����� c � �� |dk( r�t |t t f� rpt |t � r|j d� n|}|rt |d � dz nd}t t |� D ]
}d|z |z dz }� |t
|� z }|dk( rdn|}n�|d k( rkt |t t t f� rPt |t � r|j � }t j |t |� j � z � }n:t |t d � t t t t t f� st d
� �t �| �E |� d | _ y )Nr; zlatin-1r � iCB l ���� ������r: zOThe only supported seed types are: None,
int, float, str, bytes, and bytearray.)�
isinstance�str�bytes�decode�ord�map�len� bytearray�encode�int�
from_bytes�_sha512�digest�type�float� TypeError�superr- r@ )rA �a�versionrB �c� __class__s �rC r- zRandom.seed� s �� � �"