HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/sklearn/svm/_newrand.pyx
"""Wrapper for newrand.h"""

cdef extern from "newrand.h":
    void set_seed(unsigned int)
    unsigned int bounded_rand_int(unsigned int)


def set_seed_wrap(unsigned int custom_seed):
    set_seed(custom_seed)


def bounded_rand_int_wrap(unsigned int range_):
    return bounded_rand_int(range_)