[ Web Proxy ]
URL:
Viewing: https://arrow.apache.org/docs/python/generated/../api/../generated/pyarrow.compute.random.html [Back]  [Original]

pyarrow.compute.random — Apache Arrow v25.0.1
Back to top
Search the docs ...:

pyarrow.compute.random#

pyarrow.compute.random(n, *, initializer='system', options=None, memory_pool=None)[source]#

Generate numbers in the range [0, 1).

Generated values are uniformly-distributed, double-precision in range [0, 1). Algorithm and seed can be changed via RandomOptions.

Parameters:
nint

Number of values to generate, must be greater than or equal to 0

initializerint or str

How to initialize the underlying random generator. If an integer is given, it is used as a seed. If system is given, the random generator is initialized with a system-specific source of (hopefully true) randomness. Other values are invalid.

optionspyarrow.compute.RandomOptions, optional

Alternative way of passing options.

memory_poolpyarrow.MemoryPool, optional

If not passed, will allocate memory from the default memory pool.


Web Proxy Viewer  |  New URL  |  Original Page