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 -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -