Thanks, I'll try Yoshiki's particle version. For instance, in a simple coin toss program, it may be good to store percentages of heads/tails for numerous trials, like flipping a coin 10 times, get the percentage of heads, and run this trial 1000 times. Or pick 50 random numbers from 1-500 and see how many match, are do they tend to be all unique. Or in a projectile program, it may be good to store x,y positions in two arrays/lists, one for x positions, one for y positions.
Thanks again, Randy Latimer
On Wed, Oct 12, 2011 at 4:12 AM, David Corking lists@dcorking.com wrote:
R.D. Latimer wrote:
Is there a way to create an array or list of numbers - many numbers,
like 100 or 1000 or more?
From the Illinois website it looks as though a Holder is the only way to
do this, copy in a Text object for each array/list element.
This method doesn't seem to be the way to store large numbers of values
into an array or list.
Yoshiki wrote:
"Doesn't seem to be"... But can you elaborate a little bit more? It may be actually feasible with Text object. But, yes, such kind of large collection is not a common Etoys feature.
I once created a grid of the first 100 natural numbers: it wasn't pretty to create and took a few minutes of copy and paste. I ended up with a holder of holders (each containing a row of 10 Text objects.)
So it can be done but I think Yoshiki's suggestions of particles or textual script would be better. _______________________________________________ squeakland mailing list squeakland@squeakland.org http://lists.squeakland.org/mailman/listinfo/squeakland