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 19:29 by duke
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported