|
-
Jan 16th, 2002, 05:53 AM
#1
Random Integers
How do you get a random integer???
(in Assembly)
-
Jan 17th, 2002, 11:45 AM
#2
You'll either have to write your own random number algorithm or link to the CRT.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 21st, 2002, 08:43 AM
#3
Junior Member
Code:
rand:
mov eax,last_random
mov edx,<CONST1>
mul edx
add eax,<CONST2>
mov last_random,eax
ret
last_random dd <SEED>
good enough for me
-
Jan 22nd, 2002, 04:03 AM
#4
TY
OK, i will try to use it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|