[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl, SetLastError = true)] public static extern int rand( );
Microsoft documentation: Link
Last updated 1 year ago