I have a snippet of my code in which I want to highlight 10 random numbers in the console. So far I have been able to do this, the numbers are generated, but every time I get 10 of the same number
mov ecx, 10
myLoop:
push ecx
;--- randomize a number in the range 0-range ---
call GetTickCount
push eax
call nseed
push range
call nrandom
mov drawnNumber, EAX
;;;; ................
;--- derivation of the calculation result ---
push EAX
push OFFSET messageNumber
push OFFSET buffer
call wsprintfA
add ESP, 12
mov rinp, EAX
;--- displaying the result ---------
push 0
push OFFSET rout
push rinp
push OFFSET buffer
push hout
call WriteConsoleA
pop ecx
loop myLoop