Translations of this page:

mame_rand()

The mame_rand() function returns a standardized random number.

Syntax

Declaration

Declared in src/emu/mame.h as

UINT32 mame_rand(running_machine *machine);

Parameters

  • *machine – Pointer to the currently running machine.

Returns

A random number.

Example

UINT32 number = mame_rand(Machine);

Will store a random number into the variable number.

reference/mame_rand.txt · Last modified: 2007-11-19 11:29 by duke