Here is a quote from fritfrat about randomizing switches. Its about dice but still has the same concept.
QUOTE(fritfrat @ May 9 2006, 07:28 PM)
My explanation of how to do dice rolls.
If you want to get into throwing dice, you will be up for a treat. There are 36 permutations of two dice being thrown, and you need to take them all into account; for example, a 7 is 6x more likely to be thrown than a 12 or 2.
The dice throw permutations would work like this:
11 21 31 41 51 61
12 22 32 42 52 62
13 23 33 43 53 63
14 24 34 44 54 64
15 25 35 45 55 65
16 26 36 46 56 66
Added together:
2 3 4 5 6 7
3 4 5 6 7 8
4 5 6 7 8 9
5 6 7 8 9 10
6 7 8 9 10 11
7 8 9 10 11 12
2/12- 1 chance
3/11- 2 chances
4/10- 3 chances
5/9- 4 chances
6/8- 5 chances
7- 6 chances
Note, if you add them all up, there are still 36 permutations, just stated in a different way. Now, to use switches, we must randomize 6 switches. This will create 64 possibilities, but without the 6th switch, there are only 32, which is not enough.
Randomize Switch 1
Randomize Switch 2
Randomize Switch 3
Randomize Switch 4
Randomize Switch 5
Randomize Switch 6
I will use "+" for set and "-" for cleared. Switches 1 to 6 would be written in order from left to write, and the dice roll that is asoociated with it comes after the switch states.
------ 2 (Doubles)
-----+ 3
----+- 3
----++ 4 (Doubles)
---+-- 4
---+-+ 4
---++- 5
---+++ 5
--+--- 5
--+--+ 5
--+-+- 6 (Doubles)
--+-++ 6
--++-- 6
--++-+ 6
--+++- 6
--++++ 7
-+---- 7
-+---+ 7
-+--+- 7
-+--++ 7
-+-+-- 7
-+-+-+ 8 (Doubles)
-+-++- 8
-+-+++ 8
-++--- 8
-++--+ 8
-++-+- 9
-++-++ 9
-+++-- 9
-+++-+ 9
-++++- 10 (Doubles)
-+++++ 10
+----- 10
+----+ 11
+---+- 11
+---++ 12 (Doubles)
+--+--
+--+-+
+--++-
+--+++
+-+---
+-+--+
+-+-+-
+-+-++
+-++--
+-++-+
+-+++-
+-++++
++----
++---+
++--+-
++--++
++-+--
++-+-+
++-++-
++-+++
+++---
+++--+
+++-+-
+++-++
++++--
++++-+
+++++-
++++++
Now, to make the triggers. Lets start it at the beginning of a dice roll.
Randomize all 6 switches.
Now, you will have 36 triggers that follow the format of this one:
Conditions:
Switch 1 is cleared.
Switch 2 is cleared.
Switch 3 is cleared.
Switch 4 is cleared.
Switch 5 is cleared.
Switch 6 is cleared.
(A condition that shows which player is rolling the dice; for example, current player commands exactly 1 Dice Roller or something.)
Action:
(Whatever you want done).
Doubles are done by associating the first of every even trigger as a double.
If the switches come out to one of the switches without a number associated with it (Very likely), just re-randomize the switches until you get them randomized in a way they are associated with a number.
This is what I would find the most accurate way of representing true dice rolls. Good Luck