14

« **on:** December 02, 2018, 12:30:35 AM »
It would be very useful to be able to see a histogram of the performance of a lock. I started to contemplate the math that would be used to display a histogram of the possible outcomes. The trouble is accounting for the double and reset cards. If we the community could work out the math could a histogram be presented for a lock on demand. Knowing the major percentiles would be particularly helpful.

Short of that, if these phones have the computing power, a more brutrforce method could be used. A routine would load a lock and randomly pick cards in the background keeping track of the time starting when the user presses a "begin simulation" button. A field would bu updated with the count of lock lifetimes completed. When the user sees that a sufficient number of simulations have been generated he would press an "end simulation" button. Then the statistics for the simulations would be displayed.

The statistics that I think would be the most useful would be the number of draws at the 10th 25th 50th 75th 90th 95th 99th and the 100th(the maximum) percentile points.

An alternative would be a simple histogram showing the time ranges in weeks from 0 to 1, 1 to 2, and so on up to 5 to 6, then 6 to 9, 9 to 13 (that's a calendar quarter), then 13 to 26, 26 to 39, 39 to 52(a year), and finally over 52 weeks).

I do not know the language used for this app. I would be interested in knowing, learning, and then perhaps contributing to this effort.