请生成一个包含5个整数的随机列表，并找到其中的最大值和最小值。
[示例代码] 

```python
import random

random_list = [random.randint(1, 100) for i in range(5)]

max_num = max(random_list)
min_num = min(random_list)

print(f"The random list is {random_list}")
print(f"The maximum number is {max_num}")
print(f"The minimum number is {min_num}")
```

[示例输出]

```
The random list is [49, 84, 37, 24, 66]
The maximum number is 84
The minimum number is 24
```