Estuve leyendo el API y no estaba tan complicado hice este código, genera números del 0 al 10, espero te sirva
format PE console
include 'win32ax.inc'
entry start
.data
msg db "Aleatorio: %d",13,10,0
b dd 0
.code
start:
invoke GetTickCount
mov [b], eax
mov eax,[b]
mov edx,0
mov eax,[b]
mov ebx,11
div ebx
push edx
push msg
call [printf]
invoke Sleep,-1
section ".idata" import data readable writable
library msvcrt,"msvcrt.dll",kernel32,"kernel32.dll"
import kernel32,Sleep,"Sleep",GetTickCount,"GetTickCount"
import msvcrt,printf,"printf"
un saludo!