> For the complete documentation index, see [llms.txt](https://gblodb.gitbook.io/requiousfrakto-ch-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gblodb.gitbook.io/requiousfrakto-ch-wiki/advanced/random.md).

# \[细节] Random

简单的随机数

## 导包

`import mods.requious.Random;`

## ZenMethod

| ZenMethod                  |  返回类型  | 描述                                     |
| -------------------------- | :----: | -------------------------------------- |
| seedInt(int seed, int max) |   int  | 通过一个 `seed` 返回一个不超过 `max` 的 `int` 值    |
| seedDouble(int seed)       | double | 通过一个 `seed` 返回 `0` 到 `1` 之间 `double` 值 |
| nextInt(int max)           |   int  | 返回一个不超过 `max` 的 `int` 值                |
| nextDouble()               | double | 返回 `0` 到 `1` 之间 `double` 值             |
