view pytouhou/utils/random.pxd @ 775:28d8b892fd06

Python: Upgrade pyo3 from 0.17 to 0.26
author Link Mauve <linkmauve@linkmauve.fr>
date Mon, 13 Oct 2025 17:44:38 +0000
parents 292fea5c584e
children
line wrap: on
line source

cdef class Random:
    cdef unsigned short seed
    cdef unsigned long counter

    cdef void set_seed(self, unsigned short seed) nogil
    cdef unsigned short rewind(self) nogil

    cpdef unsigned short rand_uint16(self)
    cpdef unsigned int rand_uint32(self)
    cpdef double rand_double(self)