# SetRandomizeFlag

Enables or disables randomizing by accelerometer

Syntax: `SetRandomizeFlag(flag)`

* `flag` 1 - enables randomizing (default), 0 - disables randomizing

Notes: Regularly, the random number generator is irregularly read according to the lowest bits at accelerometer output. But in some cases, it is necessary that the generator is predictable, this is done by disabling randomizing by accelerometer results in a stable sequence of data from the same random seed.

Example:

* `SetRandomizeFlag(1)`

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