gb.pickRandomSeed

From Gamebuino Wiki
Revision as of 2014-06-24T17:11:42 by Rodot (talk | contribs) (Created page with "{{lowercase}} __NOTOC__ == Description == Picks a random seed using a mix of the battery voltage, ambient light sensor and the time elapsed since start up. It should be placed...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Picks a random seed using a mix of the battery voltage, ambient light sensor and the time elapsed since start up. It should be placed right after gb.begin() and gb.titleScreen(), this way the random seed will depend on how long the user takes to press "A" to leave the title screen.

Syntax

gb.pickRandomSeed();

Parameters

none

Returns

none

Example

See also