Simulating any sided Die with a Scientific calculator
Moderators: warman45, Rev. Sylvanus
Simulating any sided Die with a Scientific calculator
SMARTITUDE WARNING!
This Bonus material requires the smarts, If you cannot brain, do not read.
Using a scientific calculator it is possible to create any sided die you want, its simple, all you need is the RAN function.
The equation goes like this
XRAN+Y+1
X is the number of sides you want the dice to have, Y is the amount to be added onto the dice, The extra 1 is to stop the highest or lowest numbers from being less likely to occur.
EXAMPLE:
D27+2
would be 27RAN+2+1
(this can be simplified to 27RAN+3)
This Bonus material requires the smarts, If you cannot brain, do not read.
Using a scientific calculator it is possible to create any sided die you want, its simple, all you need is the RAN function.
The equation goes like this
XRAN+Y+1
X is the number of sides you want the dice to have, Y is the amount to be added onto the dice, The extra 1 is to stop the highest or lowest numbers from being less likely to occur.
EXAMPLE:
D27+2
would be 27RAN+2+1
(this can be simplified to 27RAN+3)
- brickmaster
- Battlefield General
- Posts: 7
- Joined: Fri May 28, 2010 1:33 pm
- Location: Oregon, USA
- Contact:
Re: Simulating any sided Die with a Scientific calculator
Awesome. You can also get apps for many of the Texas instruments graphing calculators.
Brickmaster
- Mr. FudgeDaRules
- Officer
- Posts: 185
- Joined: Tue Aug 10, 2010 8:12 pm
- Location: Closer to your gun than you yourself are.
Also if you wish to calculate it on your computer:
6. Download Just Basic v1.01 at http://www.justbasic.com/download.html (free)
7. Type in the following 5 lines of command:
[start]
x=int(rnd(1)*6)+1
print x
input"";dummystring
goto[start]
8. Change the code depending on how many and what kinds of dice you need.
The above code is for 1d6, or 1-6. Subsitute the second line for the following for different changes.
x=int(rnd(1)*5)+2
1d6, rerolling 1s
x=int(rnd(1)*6)+2
1d6 + 1
x=int(rnd(1)*4)+1
1d4
etc.
For multiple dice:
[start]
input "How many dice are being rolled? ";num
num = int(num)
[loop]
if count = num then goto[end]
x=int(rnd(1)*6)+1
roll = roll + x
count = count +1
goto[loop]
[end]
print roll
input"";dummystring
cls
count=0
roll=0
goto[start]
And subsitute the 6th line as needed.
You know, if anyone cares to use their computer. Yes, I'm a little bit of a nerd. Deal with it.
6. Download Just Basic v1.01 at http://www.justbasic.com/download.html (free)
7. Type in the following 5 lines of command:
[start]
x=int(rnd(1)*6)+1
print x
input"";dummystring
goto[start]
8. Change the code depending on how many and what kinds of dice you need.
The above code is for 1d6, or 1-6. Subsitute the second line for the following for different changes.
x=int(rnd(1)*5)+2
1d6, rerolling 1s
x=int(rnd(1)*6)+2
1d6 + 1
x=int(rnd(1)*4)+1
1d4
etc.
For multiple dice:
[start]
input "How many dice are being rolled? ";num
num = int(num)
[loop]
if count = num then goto[end]
x=int(rnd(1)*6)+1
roll = roll + x
count = count +1
goto[loop]
[end]
print roll
input"";dummystring
cls
count=0
roll=0
goto[start]
And subsitute the 6th line as needed.
You know, if anyone cares to use their computer. Yes, I'm a little bit of a nerd. Deal with it.
- muffinman42
- Dimmy
- Posts: 705
- Joined: Fri Jul 17, 2009 2:33 pm
- Location: I like to think this is the more sober account.
- Contact:
Or if you have a computer you could use: http://www.virtualadept.co.uk/diceroller.cfm
though it only has existing dice.
though it only has existing dice.
Kerbal Rocketry(my youtube with actual videos on it!)
Muffinman aka. second account of Tahthing. Not technically troll account, as it was made out of shame.
Muffinman aka. second account of Tahthing. Not technically troll account, as it was made out of shame.
- Mr. FudgeDaRules
- Officer
- Posts: 185
- Joined: Tue Aug 10, 2010 8:12 pm
- Location: Closer to your gun than you yourself are.
- Robot Monkey
- My Little Pony
- Posts: 1935
- Joined: Tue Nov 02, 2010 8:47 pm
- Location: The Edge
nice... that made my brikwars <a href='http://tinyurl.com/y42zurt'>alot</a> easier.muffinman42 wrote:Or if you have a computer you could use: http://www.virtualadept.co.uk/diceroller.cfm
though it only has existing dice.
- muffinman42
- Dimmy
- Posts: 705
- Joined: Fri Jul 17, 2009 2:33 pm
- Location: I like to think this is the more sober account.
- Contact:
WOW you have a brikwars <a href='http://tinyurl.com/y42zurt'>alot</a> ! or... did you mean "A lot"...Robot Monkey wrote:nice... that made my brikwars <a href='http://tinyurl.com/y42zurt'><a href='http://tinyurl.com/y42zurt'>alot</a></a> easier.muffinman42 wrote:Or if you have a computer you could use: http://www.virtualadept.co.uk/diceroller.cfm
though it only has existing dice.
GOD DAMMIT I'M BECOMING A GRAMMAR Piltogg!
Kerbal Rocketry(my youtube with actual videos on it!)
Muffinman aka. second account of Tahthing. Not technically troll account, as it was made out of shame.
Muffinman aka. second account of Tahthing. Not technically troll account, as it was made out of shame.
- aoffan23
- You can nail me with your wood. ( ͡° ͜ʖ ͡°)
- Posts: 2702
- Joined: Sat Jan 23, 2010 7:41 pm
- Location: Ottawa
There's always the option of http://www.random.org/. Just type in the max number and it will generate a random number for you. For multiple dice, just click multiple times.
With this, you could even have a 1782-sided die roll.
With this, you could even have a 1782-sided die roll.
Spoiler
Show
Tzan wrote:I agree with Warhead.Quantumsurfer wrote:I generally agree with TzanWarhead wrote:I agree with QuantumSmurfer.
- Keldoclock
- My Little Pony
- Posts: 1833
- Joined: Sun Nov 30, 2008 2:19 pm
- Location: New York City
- Robot Monkey
- My Little Pony
- Posts: 1935
- Joined: Tue Nov 02, 2010 8:47 pm
- Location: The Edge
i do have brikwars.... why else would i be on the forum?muffinman42 wrote:WOW you have a brikwars <a href='http://tinyurl.com/y42zurt'><a href='http://tinyurl.com/y42zurt'>alot</a></a> ! or... did you mean "A lot"...Robot Monkey wrote:nice... that made my brikwars <a href='http://tinyurl.com/y42zurt'><a href='http://tinyurl.com/y42zurt'><a href='http://tinyurl.com/y42zurt'>alot</a></a></a> easier.muffinman42 wrote:Or if you have a computer you could use: http://www.virtualadept.co.uk/diceroller.cfm
though it only has existing dice.
GOD DAMMIT I'M BECOMING A GRAMMAR Piltogg!
- Ranger S2H
- Minifig
- Posts: 290
- Joined: Thu Jun 18, 2009 7:08 pm
- Location: deep in dimmy territory, fighting the hordes from the inside.
- Contact:
perhaps someone should make a program like that with fancy graphics and animation . . .
- I refuse to be stopped by something as irrelevant as logic, the laws of physics, or common sense -
if 20 chickens can fit in a brick, how many pingpongballs does a crocodile have to eat so it can swim faster than a washing machine?
if 20 chickens can fit in a brick, how many pingpongballs does a crocodile have to eat so it can swim faster than a washing machine?
- Blitzen
- Distinguished Owner of the English Language
- Posts: 1727
- Joined: Tue Jan 01, 2008 5:17 pm
- Location: Toronto, Ontario, Canada
- Contact:
Or you could just buy some dice. Just a thought.
I got a set of dice for Manly Santa Day. They're pretty, and simple to use. I even roll them by accident sometimes; it's that easy!
I got a set of dice for Manly Santa Day. They're pretty, and simple to use. I even roll them by accident sometimes; it's that easy!
Often, literally, a pillow fight but may include similar situations like volleyball, particularly when wardrobe is skimpy and the action is bouncy.