Re: [PHP] Predictable-random array

2005-06-21 Thread Jochem Maas
Dotan Cohen wrote: On 6/21/05, Jochem Maas <[EMAIL PROTECTED]> wrote: Dotan Cohen wrote: $items is a static file, that does not change over time. It just needs that makes things easier :-) to be output in a reproducable 'random' order for different purposes. I looked over your

Re: [PHP] Predictable-random array

2005-06-21 Thread Dotan Cohen
On 6/21/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > I've got an array $items which has about 200 entires. I want to print > > it might be helpful to know where the array comes from. > or maybe its a static definition to start with (nothing wrong with that as > such :-) > d

Re: [PHP] Predictable-random array

2005-06-21 Thread Dotan Cohen
On 6/20/05, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > I've got an array $items which has about 200 entires. I want to print > > them out in random order, but as usual, I have a catch! I need to add > > a 'key' so that if need be, I can always return to the same 'random' >

Re: [PHP] Predictable-random array

2005-06-20 Thread Jochem Maas
Dotan Cohen wrote: I've got an array $items which has about 200 entires. I want to print it might be helpful to know where the array comes from. or maybe its a static definition to start with (nothing wrong with that as such :-) does $items change over time? in what way? them out in random o

Re: [PHP] Predictable-random array

2005-06-20 Thread Marek Kilimajer
Dotan Cohen wrote: I've got an array $items which has about 200 entires. I want to print them out in random order, but as usual, I have a catch! I need to add a 'key' so that if need be, I can always return to the same 'random' order, like so: $items=predicatable_random($items, "qwerty"); so fo