Random Number Generator
Project description
Random Number Package
random number generator
This module implement random number from the specified distribution.
Real-valued distributions
The following functions generate specific real-valued distributions. Function parameters are named after the corresponding variables in the distribution’s equation.
-
uniform(size)
Return the 'size random floating point numbers in the range [0.0, 1.0).
-
gaussian(size)
-
binomial(trials,probability,size)
return samples from a binomial distribution, where each sample is equal to the number of successes over the n trials.
-
chisquare(df,size)
return samples from a chi-square distribution. Parameters:
a. df : int or array_like of ints;Number of degrees of freedom. b. size : int or tuple of ints, Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. If size is None (default), a single value is returned if df is a scalar. Otherwise, np.array(df).size samples are drawn. -
weibull(size) return samples from a Weibull distribution. Parameters: a : float or array_like of floats Shape of the distribution. Should be greater than zero. size : int or tuple of ints, optional Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. If size is None (default), a single value is returned if a is a scalar. Otherwise, np.array(a).size samples are drawn.
-
exponential(scale,size) return samples from an exponential distribution. Parameters: scale : float or array_like of floats The scale parameter, \beta = 1/\lambda. size : int or tuple of ints, optional Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. If size is None (default), a single value is returned if scale is a scalar. Otherwise, np.array(scale).size samples are drawn.
-
poisson(lam,size) return samples from a poisson distribution. Parameters: lam : float or array_like of floats Expectation of interval, should be >= 0. A sequence of expectation intervals must be broadcastable over the requested size. size : int or tuple of ints, optional Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. If size is None (default), a single value is returned if lam is a scalar. Otherwise, np.array(lam).size samples are drawn.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rand_number__gen-0.1.tar.gz.
File metadata
- Download URL: rand_number__gen-0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f30d5896ea1456dc8bd751e7e0107bca180340bd3d708d1f52db39eace0b7e6
|
|
| MD5 |
8e6bd925cb6570271ada0fb1cdad7c96
|
|
| BLAKE2b-256 |
895612469ff42816bebbaf9c13dc6f4885800ccd5c8c845a7b1eaf8b1cedeb8c
|
File details
Details for the file rand_number_gen-0.1-py3-none-any.whl.
File metadata
- Download URL: rand_number_gen-0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54794c3c9d51e211d24a33e23c9e164400b3b0e0326810d1433d0e277fdf57e7
|
|
| MD5 |
c77324f93b935c8c834deb372a00fd88
|
|
| BLAKE2b-256 |
a2dda3eacf28604c63486e1ef718758029cb1827e9f4b42778780fa68c88e557
|