random
Mathematical Programming with Python
https://people.sc.fsu.edu/~jburkardt/classes/...
python_2025/random/random.html
random:
example of a bad random number generator.
importing the random number generator functions from numpy().
Computing mean and variance.
Using uniform and normal distributions. Random numbers
between a and b. Random integers. Randomly selecting
items from a set, such as dealing from a deck of cards.
Random permutations. Controlling the
random number generator.
Lecture notes:
-
lcg.py,
demonstrate a linear congruential generator.
-
markov_text.py,
apply a Markov Chain approach to a text, and generate new
random sample texts.
-
alice_oz.txt,
the texts of Alice in Wonderland and The Wizard of Oz,
used as the basis for the Markov experiment.
Last revised on 16 February 2025.