# setRandomSeed {#setrandomseed}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`setRandomSeed(seed)`

## Arguments {#arguments}

**seed** is an integer indicating the random seed.

## Details {#details}

Set the random seed.

## Examples {#examples}

```
setRandomSeed(5);
rand(10, 10);
// output: [2,0,8,8,2,3,9,9,4,0]
```

