Hi Matt,

Yes numbers can and should repeat through time. They just cant be repeated
within the sequence at a given discreet time. Makes sense? :)

On Mon, Jul 28, 2008 at 11:15 PM, Matt S. <[EMAIL PROTECTED]> wrote:

> Can numbers repeat? Is this a constant loop where, for instance, the
> number 12 could show up two times in twenty seconds? Or would you want
> 12 to show up once and then go out of circulation permanently?
>
> .m
>
> On Mon, Jul 28, 2008 at 5:42 PM, Eduardo Barbosa <[EMAIL PROTECTED]>
> wrote:
> > Hi all!
> >
> > What I am trying to figure out is this:
> >
> > How to generate a sequence of random numbers where the newest is always
> > different from all the previous?
> >
> > I need to continuosly rewrite an array of 10 random numbers in such a way
> > that at any given time they are all different.
> >
> > Let's say that my range is 0 to 100
> >
> > it starts with random numbers, all different:
> >
> > {3, 34, 12, 69, 6, 44, 31, 90, 88, 23}
> >
> > at a set interval some values are replaced by new ones so there are never
> > two equal numbers, so, after 2 seconds it may look like this:
> >
> > {3, 66, 12, 79, 6, 44, 10, 81, 88, 23}
> >
> >
> > Any ideas?
> >
> > Thanks :)
> > Eduardo
> > _______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to