How to generate random numbers using assembly code in the range 1–4 ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Don’t know what system you are trying to do this on, so here is a general answer, that should apply, no matter which:
tadaa. randum numbers.
if you want them more random use perhaps do this instead:
Cheers!
/B2S
EDIT: Sorry, been on holiday out of internet’s reach. (yes, genuinely amazing that such places still exist) I’m not particularly familiar with either EyeBot nor 68k asm. So I don’t know the syscall to read in the clock or time (either will do). So look that one up, the rest of the code should be something like
D0 should now contain your random number