On this page
random.weibullvariate
Prev: random.vonmisesvariate | Up: random
Rel: random.betavariate, random.binomialvariate, random.choice, random.choices
Ref: docs.python.org — random.weibullvariate
Tags: #public #python3 #stdlib #random
Import
import random
from random import weibullvariate
Signature & Overview
random.weibullvariate(alpha, beta)
Weibull distribution.
Usage
import random
rng = random.Random(1)
lifetime = rng.weibullvariate(alpha=1.0, beta=1.5)
assert lifetime >= 0.0
Gotchas
- Reliability/failure-time modeling:
alphais scale andbetais shape (beta == 1reduces to an exponential distribution).
REPL Inspect
from random import weibullvariate
help(weibullvariate)
Linked from
Related notes
- tuts/python3/stdlib_module/random/vonmisesvariate Linked here; links to this page; shared tags: #random, #stdlib
- tuts/python3/stdlib_module/random/betavariate Linked here; shared tags: #random, #stdlib
- tuts/python3/stdlib_module/random/binomialvariate Linked here; shared tags: #random, #stdlib
- tuts/python3/stdlib_module/random/choice Linked here; shared tags: #random, #stdlib
- tuts/python3/stdlib_module/random/choices Linked here; shared tags: #random, #stdlib
- tuts/python3/stdlib_module/random/random Linked here; shared tags: #random, #stdlib
- tuts/python3/stdlib_module/random links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/random/expovariate shared tags: #random, #stdlib
- tuts/python3/stdlib_module/random/gammavariate shared tags: #random, #stdlib
- tuts/python3/stdlib_module/random/gauss shared tags: #random, #stdlib