Hello
I'm a beginer. I dont know to use exact nrandom function in masm32.lib. I did do as following:

386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\kernel32.lib
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
include \masm32\m32lib\masm32.inc
includelib \masm32\m32lib\masm32.lib

.data
MsgBoxCaption  db "Iczelion Tutorial No.00",0
zz db '%4X',0
buffer dd 128 dup (0)




.code



start:

INVOKE GetTickCount
invoke nrandom,eax

invoke wsprintf,addr buffer,offset zz, eax
invoke MessageBox, NULL, addr buffer, addr MsgBoxCaption, MB_OK
invoke ExitProcess, NULL

end start


Exact?????

please help me.
Posted on 2005-11-09 11:34:22 by smallboy
invoke GetTickCount
invoke nseed, eax
invoke nrandom, some_value ; gets pseudo-random number up to some_value.
Posted on 2005-11-09 12:03:17 by arafel