blob: e879c8f64ab4d1e48e3ba793f803ccbe1a25844f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from libc.stdint cimport uint_fast32_t
cdef extern from "<random>" namespace "std" nogil:
cdef cppclass mt19937:
ctypedef uint_fast32_t result_type
mt19937() except +
mt19937(result_type seed) except +
result_type operator()() except +
result_type min() except +
result_type max() except +
void discard(size_t z) except +
void seed(result_type seed) except +
|