Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Irvine 程序总是给出相同的输出。
每次执行程序时获取随机数的更好方法是什么?
TITLE Program Template (Template.asm) INCLUDE Irvine32.inc .data .code main PROC mov eax, 6 call RandomRange call writeint exit main ENDP END main
我了解到在使用 randomrange 函数之前我需要使用 randomize 函数。代码应该是这样的:
. . call randomize mov eax, 6 call RandomRange call writeint . .
例如。
感谢所有阅读问题的人。