7554425D-0054-440D-B95E-D2ABC13D62CD Created with sketchtool.
{body}
Your Saved Info Packages

View your saved Course or Program Packages containing pricing and detailed curriculum.

Speak with a Learning Advisor.

Have any questions? We'll call you.

Fill out the form below and a Learning Advisor will reach out at a time convenient for you.

Please pick a valid date and time between 9 AM and 8 PM eastern (Monday to Friday)

By clicking "Book a call," you accept our Terms and will also receive exclusive offers and updates about new courses, workshops and events.

Python Tutorial

Python Random Module

Ready to start your career in Data? Find out more about BrainStation's Python Course

While writing code in Python, there is a need sometimes for developers to generate random numbers. Random numbers are very useful in building gambling games to deal a random hand to players, in cryptography and statistical sampling in Python code.

Python provides a very easy way to generate these random numbers by using the random module. These random numbers are very deterministic as they are generated using a seed value. Hence, they are not ideal for use in encryption. For a given seed, they always generate the same random numbers.

Set Password

You already have an account with BrainStation, but you still need to set up a password.