Qbasicnews.com

Full Version: card shuffler
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
phycowelder,

Your code has several statements that look like this:
Code:
ii = INT(RND(1) * 54 + 1)
That's not going to work. For random numbers from 1 to 54, you should have:
Code:
ii = INT(RND*(54 - 1 + 1)) + 1
which becomes:
ii = INT(RND*(54)) + 1

But don't worry, lots of people get this mixed up.
*****
Ahh... yep. I used to do that same exact thing. Wink

One extremely minor difference though... Somehow, I picked up the habit of doing it backwards.


Code:
ii = 1 + INT(RND * 54 )

Not like it realy matters, but it is pretty funny. :lol:
Potato Patato (not sure how to do that, but you get my point)
Pages: 1 2 3