[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LOGO-L> eliminating items randomly from a list



I hope there is an easy explanation, but I can't find it!  I have tried
every combination of likely commands I can think of, to no avail.

I have a list with 11 words in it; each is the name of a procedure.  I am
trying to pick one of these words at random and then eliminate it from the
list.  (At a certain button click, all of the words can be restored to the
list.)  But all I can manage to do is either run through the list in the
same order as originally entered, eliminating the first (or last) each time
(using butfirst or butlast), or select randomly without eliminating any
words and sometimes have the same word get chosen repeatedly.  How can I
select a word randomly and then place that word at the beginning or end of
the list so it can be eliminated?  Or if this is not possible, is there
some handy way of entering the list in a newly scrambled order each time a
button is clicked?  Does it help to put the list into a text box?

Thanks in advance,
Wendy Petti
Washington International School
wap3@cornell.edu  or comp3@wis.edu


---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home