I'm learning masm32 and I need the program to generate a random integer from range 0-9 to compare to the user input. I have no problems with the comparing if I do have an integer. Is there an easy way to generate a new random integer from said range every time the program is run?
I know there's the Irvine32 library, but is there a way to do it without having to download extra libraries?
Thanks.
Also, this:
invoke GetTickCount
invoke nseed, eax
invoke nrandom, 10
mov number, eax
push offset number
call StdOut
Gives me some smiley faces not numbers, is there a way to make it work?