mirror of
https://github.com/boostorg/random.git
synced 2026-01-21 05:02:17 +00:00
10 lines
252 B
Python
Executable File
10 lines
252 B
Python
Executable File
from _random import *
|
|
|
|
class variate_generator:
|
|
def __init__(self, rng, distribution):
|
|
self.base = distribution_variate_map[distribution.__class__](rng, distribution)
|
|
|
|
def __getattr__(self, key):
|
|
return getattr(self.base, key)
|
|
|