# Random library

## `random` is a Python "module". It provides functionality associated with randomness / probability.

```python
import random as rd
# Call the FUNCTION named random 3 times and assign the result of each
# call to a variable.
a = rd.random()
b = rd.random()
c = rd.random()
print("a is", a)
print("b is", b)
print("c is", c)

# random isn't the only function in the random module.
# Do a google search for "python random library" or 
# go here: https://docs.python.org/3/library/random.html
# to learn more.

print("Now keep pressing Ctrl+Enter to run this cell many times!")
print("Notice how the values of a,b, and c keep changing!")
```

```
a is 0.4969263088042536
b is 0.3784298209627044
c is 0.5713035042669655
Now keep pressing Ctrl+Enter to run this cell many times!
Notice how the values of a,b, and c keep changing!
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://python-self-driving.gitbook.io/self-driving/python/random-library.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
