Share via


Random

This function generates a random number.

DWORD Random();

Parameters

None.

Return Values

A randomly generated DWORD.

Remarks

The number generated by Random is based on a seed derived automatically from internal calls to the GetTickCount function.

Windows CE also supports the rand function in the C run-time library.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.

See Also

Common Control Functions | GetTickCount

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.