Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.21 KB

random.rst

File metadata and controls

43 lines (31 loc) · 1.21 KB

cupy.random

Random Sampling (cupy.random)

CuPy's random number generation routines are based on cuRAND. They cover a small fraction of numpy.random.

The big difference of cupy.random from numpy.random is that cupy.random supports dtype option for most functions. This option enables us to generate float32 values directly without any space overhead.

Sample random data

cupy.random.choice

cupy.random.rand

cupy.random.randn

cupy.random.randint

cupy.random.random_integers

cupy.random.random_sample

cupy.random.random

cupy.random.ranf

cupy.random.sample

Distributions

cupy.random.gumbel

cupy.random.lognormal

cupy.random.normal

cupy.random.standard_normal

cupy.random.uniform

Random number generator

cupy.random.seed

cupy.random.get_random_state

cupy.random.RandomState