The highest tagged major version is
v2 .
Discover Packages
github.com/nickheyer/icebath
pkg
internal
pyrandom
package
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Nov 21, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
var ErrSampleSize = &pyint .Error {Kind: "ValueError", Msg: "Sample larger than population or is negative"}
ErrSampleSize is the ValueError random.sample raises for a k outside [0, n]
Sample returns k distinct members of population in random.sample order
Random is the Mersenne Twister generator behind Python random.Random
Generator seeded with an integer the way random.seed(n) seeds it
Non negative integer of k random bits, words filled least significant first as getrandbits does
Uniform integer in [0, n) by rejection over n.bit_length() random bits
Indices of k distinct population members chosen as random.sample chooses them, pool or set selection by size
func (*Random) Seed ¶
Reseeds from the absolute value of seed split into little endian 32 bit words
Source Files
¶
Click to show internal directories.
Click to hide internal directories.