#ifndef _NTRTL_H
//
// Random
//
NTSYSAPI
ULONG
NTAPI
RtlUniform(
_Inout_ PULONG Seed
);
View code on GitHub// winternl.h
ULONG RtlUniform(
[in, out] PULONG Seed
);
View the official Win32 API referenceThis function is documented in Windows SDK.
Generates a uniform random number using D.H. Lehmer's 1948 algorithm.
Seed [in, out]The seed value.
The function returns a random number uniformly distributed over [0..MAXLONG].
This function has no associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to Ntdll.dll.