Author Topic: SEEDRND fix  (Read 2195 times)

Offline Topzombie

  • Mc. Print
  • *
  • Posts: 17
    • View Profile
SEEDRND fix
« on: 2010-Mar-10 »
Sometimes (keywait programs etc...) RND isn't working correctly.
This function fix the "bug".
Code: GLBasic [Select]
FUNCTION SeedRNDConsole:
        LOCAL TickCount
        INLINE
                DECLARE_C_ALIAS(GLBGetTickCount,"kernel32.dll", "GetTickCount",(),int);
                TickCount = GLBGetTickCount();
        ENDINLINE
        SEEDRND TickCount
ENDFUNCTION

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5021
  • O Rly?
    • View Profile
Re: SEEDRND fix
« Reply #1 on: 2010-Mar-11 »
Mach nur 1x declare, und drunter die Funktion an sich!
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard