# GetRnd

Read value from random generator

Syntax: `GetRnd(size)`

* `size` defines output size

Returns: Returns (value%size)

Notes: This function returns a value from random generator with its modulo operation over given size

Example:

* `GetRnd(3)`, gives back numbers in range&#x20;

See also: [SetRndSeed](https://rmjjjt.gitbook.io/rubik-s-futuro-cube-sdk-open-beta-v1-4/summary/api-native-functions/misc/setrndseed)
