This tutorial demonstrates how to sample random numbers from standard distributions and from some user-defined ones, and also how to generate sequences of quasi-random numbers. It also present the case studies of various regimes of dynamical systems - bifurcations and chaos.