How to use Python random.seed() function

Jack Dong
3 min readNov 18, 2020

This article demonstrates how to use random.seed() function to initialize the pseudo-random number generator in Python to get the deterministic random data you want. By setting the custom seed value we can get the determined sequence of random numbers.

Goals of this lesson. In this lesson you’ll learn how to:

  • Use random.seed() to initialize the pseudo-random number…

--

--