BBC BASIC for Windows
« Keeping track of choices »
Welcome Guest. Please Login or Register. Apr 5th, 2018, 10:57pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
Re: Keeping track of choices
« Reply #5 on: Mar 18th, 2015, 7:21pm »
Thanks very much both of you for taking the trouble to offer me solutions, much appreciated. Your explanation, Stripey, was very helpful.
Richard, I think you are giving me credit for more intelligence than I possess!
I was mainly looking for a solution to prevent me from choosing the same number twice. I haven't reached the great scale of shuffling a 52 pack of cards with 4 suits yet, whatever impression I may have given you, but, one day...........
Seriously though folks, thanks again to both of you.
Logged
rtr2 Guest
Re: Keeping track of choices
« Reply #6 on: Mar 18th, 2015, 8:30pm »
I was mainly looking for a solution to prevent me from choosing the same number twice.
I hope you haven't misunderstood. The solution to preventing you from choosing the same number twice is to use a shuffle. I listed the code to do it, linked to two other threads with more detail, and pointed to a Wiki article. What more can I do to persuade you to do this in the simple way?
Quote:
I haven't reached the great scale of shuffling a 52 pack of cards with 4 suits yet
Shuffling 52 items is no harder than shuffling 5 (just change every 5 to 52 in the code I listed) so I don't really understand what you are meaning with that comment.