in reply to Remove lowest number

Here is a subset of code that I had written to solve the problem. The essential ingredients are there.

Running the code produces:

You can see the problem with is that it removes duplicates of the rolled number as well. You can modify the code to count the number of occurances and then ignore the first occurance and print the rest of the occurances.

I've used variants this code to generate FRP gaming information in the past where the system was to roll N+2 number of rolls plus one and ignore the lowest and highest roll.


Peter @ Berghold . Net

Sieze the cow! Bite the day!

Test the code? We don't need to test no stinkin' code! All code posted here is as is where is unless otherwise stated.

Brewer of Belgian style Ales