wmmullaney
New Member
Hi all, I want to code a slot machine game (in pic ASM) And I was wondering if there was any way to get true random numbers from the pic.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hi all, I want to code a slot machine game (in pic ASM) And I was wondering if there was any way to get true random numbers from the pic.
Hi all, I want to code a slot machine game (in pic ASM) And I was wondering if there was any way to get true random numbers from the pic.
Hi all, I want to code a slot machine game (in pic ASM) And I was wondering if there was any way to get true random numbers from the pic.
Because the game may involve the player pressing buttons, you could get a fairly random number by just reading the value of a fast cycling counter whenever a button is pressed.
But in BASIC there is a random # instruction, I was kinda wondering what it does to get it.
Because the game may involve the player pressing buttons, you could get a fairly random number by just reading the value of a fast cycling counter whenever a button is pressed.
Many of the machines that generate "random" numbers use a sort of medium to get a random value, such as pudding or custard.
Very true. With a counter that is counting in the millionths of a second, it is impossible for the player (unless he hacks the thing) to influence the results.