TI-Planet Dice Rolling Simulator
Actions
Vote (5/5):
ScreenshotAperçu
Informations
Catégorie :Category: Jeux TI-Nspire
Auteur Author: Samuel Connelly
Type : Basic
Taille Size: 3.06 Ko KB
Mis en ligne Uploaded: 07/10/2023 - 22:37:54
Uploadeur Uploader: clevor (Profil)
Téléchargements Downloads: 14
Visibilité Visibility: Archive publique
Shortlink : http://ti-pla.net/a3624914
Type : Basic
Taille Size: 3.06 Ko KB
Mis en ligne Uploaded: 07/10/2023 - 22:37:54
Uploadeur Uploader: clevor (Profil)
Téléchargements Downloads: 14
Visibilité Visibility: Archive publique
Shortlink : http://ti-pla.net/a3624914
Description
Your favorite dice-rolling game, now on the Nspire, in the form of a library.
Instead of typing '/roll 1d100', type 'rollroll(1,100)'
There are two other functions, rollavg_rolls(sides) and rollsavg_rolls_gen(max_sides). rollavg_rolls(sides) returns the average amount of rolls to roll a 1, given the fact that the result of the current roll is the number of sides of the next roll. rollavg_rolls_gen(max_sides) returns the whole list. Due to TI not storing fractions as the quotient of the numerator and denominator, it takes too long to display the result as a fraction, which is why the results are not fractions.
Make sure you set the 'name' variable to your username, otherwise I'd be rolling all of the dice!
DISCLAIMER: This has been untested on operating systems prior to 3.9.0. Please email me at [my GitHub username] at [Google Mail domain].
Instead of typing '/roll 1d100', type 'rollroll(1,100)'
There are two other functions, rollavg_rolls(sides) and rollsavg_rolls_gen(max_sides). rollavg_rolls(sides) returns the average amount of rolls to roll a 1, given the fact that the result of the current roll is the number of sides of the next roll. rollavg_rolls_gen(max_sides) returns the whole list. Due to TI not storing fractions as the quotient of the numerator and denominator, it takes too long to display the result as a fraction, which is why the results are not fractions.
Make sure you set the 'name' variable to your username, otherwise I'd be rolling all of the dice!
DISCLAIMER: This has been untested on operating systems prior to 3.9.0. Please email me at [my GitHub username] at [Google Mail domain].