> For the complete documentation index, see [llms.txt](https://docs.settlers-united.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.settlers-united.com/s4-lua-api-de/library-functions/game/game.random.md).

# Game.Random

## `Game.Random(Zahl)`

Gibt eine "zufällige" Zahl zwischen 0 und Zahl-1 zurück.

#### Rückgabewert

Zufallszahl

#### Beispiel

```lua
Game.Random(5) --//Gibt eine Zahl zwischen 0 und 4 zurück.
```
