How do you get a random integer???
(in Assembly)
Printable View
How do you get a random integer???
(in Assembly)
You'll either have to write your own random number algorithm or link to the CRT.
good enough for meCode:rand:
mov eax,last_random
mov edx,<CONST1>
mul edx
add eax,<CONST2>
mov last_random,eax
ret
last_random dd <SEED>
OK, i will try to use it.