HP Forums

Full Version: (17Bii) Dice roller solver formula
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I forget where I got this random number generator (UPDATE: it was from this post) but managed to figure out how to use it in a program to easily roll an n-sided die with one button press. Just put a non-zero seed in, and set VAL to the number of sides on the dice.

Code:
DICE:ROLL=0*L(SEED:FP((PI+G(SEED))^5))+INT(SEED*VAL+1)

No idea how well this random function does, but seems to work. Still trying to wrap my head around the solver in this thing so open to suggestions/improvements. Also only tried it so far in Emu42, waiting on the real thing in the mail.

[attachment=12402]
Suggest you poke in all the Solver examples in the 17BII manual; even if you don't need the applications they demonstrate, doing so helps to learn the syntax and UI of entering and using the Solver. And then...

This manual will help you to understand some of the finer points and more subtle behavior of the Pioneer Solver once you get the hang of it.

https://literature.hpcalc.org/items/1143
CoolSmile Works great in the Plus42 app as well.
[attachment=12403]
Thanks for the replies, just got the real deal and works well here too. I sprang for one with the spiral manual included, so I'll dig into those solver examples for sure.
(08-14-2023 06:12 PM)flimshaw Wrote: [ -> ]Thanks for the replies, just got the real deal and works well here too. I sprang for one with the spiral manual included, so I'll dig into those solver examples for sure.

Which 17BII did you get?

The original one with brown Bezel and soft case, or
The later one with Black bezel and soft case, or
The "Gold" one with the more rounded body and much cheaper case, or
The "Silver" one with the nicer, most leather-like case of the lot?

The top 2 have bug-free Solvers, while the bottom 2 have some bugs in the Solver (there are many articles here describing them in nauseating detail).
Reference URL's