ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   simulations (https://www.excelbanter.com/excel-worksheet-functions/178452-simulations.html)

Notey

simulations
 
How do you simulate an unfair spinner or die?

Sandy Mann

simulations
 
You don't say how you want to have the die being unfair. This will give a 6
for 50% of the time, 3 for 25% of the time and the other numbers for 8 1/3%
of the time:

=CHOOSE(INT(RAND()*12+1),1,2,3,3,3,4,5,6,6,6,6,6)
--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Notey" wrote in message
...
How do you simulate an unfair spinner or die?




Notey

simulations
 
Thank you!

-Notey

"Sandy Mann" wrote:

You don't say how you want to have the die being unfair. This will give a 6
for 50% of the time, 3 for 25% of the time and the other numbers for 8 1/3%
of the time:

=CHOOSE(INT(RAND()*12+1),1,2,3,3,3,4,5,6,6,6,6,6)
--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Notey" wrote in message
...
How do you simulate an unfair spinner or die?





Sandy Mann

simulations
 
You're Very welcome. Thanks for the feedback.

--
Regards,

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Notey" wrote in message
...
Thank you!

-Notey

"Sandy Mann" wrote:

You don't say how you want to have the die being unfair. This will give
a 6
for 50% of the time, 3 for 25% of the time and the other numbers for 8
1/3%
of the time:

=CHOOSE(INT(RAND()*12+1),1,2,3,3,3,4,5,6,6,6,6,6)
--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Notey" wrote in message
...
How do you simulate an unfair spinner or die?








Bernd P

simulations
 
Hello,

Another alternative would be my UDF redw:
http://www.sulprobil.com/html/distributions.html

Regards,
Bernd


All times are GMT +1. The time now is 08:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com