> ## Documentation Index
> Fetch the complete documentation index at: https://python-training.ipoint-labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lab 35: Dice and lottery with random

> Hands-on lab · 20 min · Module 14

Roll a die with `random.choice()`, count each face in a dictionary, and draw lottery numbers with `random.sample()`, seeded so every run gives the same results.

[Open Lab 35 in the IP Lab Portal](https://labs.intellectualpoint.com/labs/pcep-lab-35-dice-lottery)

## What you will practice

* Seed the generator
* Pick with `choice()` and `sample()`
* Count outcomes in a dictionary

## Before you start

Time
20 minutes
*Hands-on in Python 3*

Where
IP Lab Portal
*labs.intellectualpoint.com*

Module
Module 14: Modules and imports
*PCEP-30-03*

* In the IP Lab Portal, open **Lab 35 - Dice and lottery with random**.
* In class, this lab comes right after the **Lesson 3 recap** slide in [Module 14 core material](https://python-training.ipoint-labs.com/pcep/module-14/material.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.