RandomSeed/developers

From Wiring

Jump to: navigation, search
This page is intended as a reference for core developers only, and the content is only changed after a consensus has been reached through discussion of any such changes. Please use the Discussion page to talk about any changes or issues you have with the current implementation.
randomSeed()
Classification Math Methods
Suggested location WMath.h
C++ required No
Timing constraints None
Version introduced 1.0 (0100)
Framework dependencies None
Prototype(s)
void randomSeed(uint16_t seed)
Required? Yes
Issues None


Contents

Description

Sets the seed value for random().

Black Box Input

The seed value is provided.

Black Box Output

Nothing is returned.

Overloading

None. Single signature only.

Notes

By default, random() produces different results each time the program is run. Set the value parameter to a constant to return the same pseudo-random numbers each time the software is run.

Proposed Changes

Personal tools