random - assembly randomrange always same output -


the irvine procedure gives same output.

what better way random numbers each time program executed?

title program template    (template.asm)   include irvine32.inc   .data   .code main proc   mov eax, 6 call randomrange  call writeint       exit     main endp    end main 

i have learned needed use randomize function before using randomrange function. code should like:

. . call randomize mov eax, 6 call randomrange  call writeint . . 

for example.

thank read question.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -