right way to remove a toss?

Skip to first unread message

John Hanna

Apr 5, 2021, 1:41:58 PMApr 5
to tins...@googlegroups.com

Greetings all you prob/stat folks!


I’m working on a program to toss a die when you press some key and add the tossed value to a list for plotting a Frequency histogram.

I want another keypress to remove an element from that list. What , in your view, is the ‘best’ method to implement ‘remove’:

  1. remove last element (last toss),
  2. remove first element,
  3. remove a random element or…
  4. If there’s at least one element in the list: toss the die until it’s in the list and remove that value.
  5. Other?
  6. Doesn’t matter


Be Excellent,

     John Hanna



Apr 5, 2021, 2:58:17 PMApr 5
to tins...@googlegroups.com
I’d say c or d, to keep with the random nature of the program, but I would also implement a separately as an undo, in case you hit the add button too many times.

On Apr 5, 2021, at 10:42 AM, John Hanna <johne...@gmail.com> wrote:

To post to this group, send email to tins...@googlegroups.com
To unsubscribe send email to tinspire+u...@googlegroups.com
For more options, visit this group at
The tns documents shared by group members are archived at

You received this message because you are subscribed to the Google Groups "tinspire" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinspire+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tinspire/007001d72a42%24f9a50a70%24ecef1f50%24%40gmail.com.
Reply all
Reply to author
0 new messages