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
Post a Comment