We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I'm trying to translate this code: randomInteger =(((randomInteger * 214013) + 2531011) >> 16) & 0x7FFF ;
into assembly in order to create a random integer generator, I'm guessing I'm needing the LSR, AND or MOV instructions, but I'm not sure.
I'm in an introduction to ARM Assembly Language course, I'd appreciate any help
again, there is no such thing as random generator code, only pseudorandom.
a good way to get a truly random value is to have a free running timer and reading it on some external event
Erik