BBC BASIC for Windows
« Keeping track of choices »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:51pm



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.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Keeping track of choices  (Read 934 times)
IffySnuffy
New Member
Image


member is offline

Avatar




PM


Posts: 6
xx 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. smiley
User IP Logged

rtr2
Guest
xx Re: Keeping track of choices
« Reply #6 on: Mar 18th, 2015, 8:30pm »

on Mar 18th, 2015, 7:21pm, IffySnuffy wrote:
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.

Richard.
« Last Edit: Mar 18th, 2015, 10:55pm by rtr2 » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls