218 reputation
15
bio website
location Seattle, WA
age
visits member for 3 years, 9 months
seen Oct 7 at 3:23

May
25
awarded  Popular Question
Oct
23
awarded  Yearling
Jun
23
comment How do I produce “enjoyably” random, as opposed to pseudo-random?
You're right, and I had the same reservations. Rather than exclude the previous last item, I now have it just shuffle once, and then if the previous last item is now first, I swap it with some other item randomly.
Jun
11
comment How do I produce “enjoyably” random, as opposed to pseudo-random?
To avoid a repeat of the last item after a shuffle, I just keep shuffling until the first item is different than the last one was. Seems to work great.
Jun
11
comment How do I produce “enjoyably” random, as opposed to pseudo-random?
Yet another update... for my particular application, filtered randomness didn't quite do it. I really want the player to play through all the types and subtypes before repeating, so I went with a shuffle bag.
Jun
2
comment How do I produce “enjoyably” random, as opposed to pseudo-random?
OK, my copy of AI Game Programming Wisdom 2 just arrived. I read the chapter on filtered randomness and checked out the source code. This is probably the best approach. It allows me to just use random numbers, but then filter the numbers so that unexpected patterns don't occur. It seems more bullet proof than the shuffle bag.
May
31
awarded  Scholar
May
31
accepted How do I produce “enjoyably” random, as opposed to pseudo-random?
May
29
comment How do I produce “enjoyably” random, as opposed to pseudo-random?
I still need to fully process this for my particular situation. There's a lot to think about here. Thank you.
May
29
comment How do I produce “enjoyably” random, as opposed to pseudo-random?
@AntonMårtensson brilliant, thanks for the book ref! Just purchased it.
May
29
comment How do I produce “enjoyably” random, as opposed to pseudo-random?
my biggest concern with this method was starting with the same puzzle we ended on with a new set, so thanks all for addressing it.
May
29
comment How do I produce “enjoyably” random, as opposed to pseudo-random?
@Steven yes, not two of the same type next to each other as you describe.
May
28
awarded  Nice Question
May
28
awarded  Student
May
28
asked How do I produce “enjoyably” random, as opposed to pseudo-random?
Jan
7
awarded  Supporter