RE: Yet more random number woes!
RE: Yet more random number woes!
- Subject: RE: Yet more random number woes!
- From: Oliver Donald <email@hidden>
- Date: Mon, 14 Jun 2004 10:57:14 +0100
>
From: b.bum [mailto:email@hidden]
>
Sent: 13 June 2004 04:04
>
To: Apple Lists
>
Subject: Re: Yet more random number woes!
>
>
>
It is also common to find games that will save the random number seed
>
as a part of save games so that you can effectively replay any given
>
game. For example, a solitaire game could save a single 32 bit value
>
as the random seed and base all shuffling events off of that seed. As
>
a result, no matter how the player plays a game, the same sequence of
>
card state changes will always cause the same sequence of cards to come
>
up, even though the order of cards is effectively random.
>
>
b.bum
I remember that eons ago Windows Solitaire (actually probably FreeCell) had
a 16-bit random number generator decide the cards you got, using a 16-bit
seed, and there was some way to choose what seed was used to shuffle your
deck. As a result, there was once a big quest to find which of the 32767
possible games where winable. The only game which could not be solved was
11982.
I'll have to Google for more at lunch ... ;o)
Cheers,
Oli
DISCLAIMER: The information contained in this e-mail is confidential and may
be privileged. It is intended for the addressee only. If you are not the
intended recipient, please delete this e-mail immediately. The contents of
this email must not be disclosed or copied without the sender's consent. We
cannot accept any responsibility for viruses, so please scan all
attachments. The statements and opinions expressed in this message are those
of the author and do not necessarily reflect those of the company. The
company does not take any responsibility for the views of the author.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.