Relative Content

Tag Archive for assemblyrandom

Random number generator in assembly 8086 not working

I have an array called ‘arr’ and I want to put inside of ‘arr’ 15 random numbers, I tried using the clock but it was too fast and I just got the same number 15 times.
Right now Im using a delay so that the numbers wont be the same, and I also make the delay random so the sequence of the numbers wont be the same, here is the code: