Staredit Network

Staredit Network -> UMS Assistance -> Silly random switches question
Report, edit, etc...Posted by Kyuubi. on 2005-06-17 at 14:54:29
hi, I was creating a map and putting randomized switches in it. Hope this doesn't sound stupid but I created 3 randomized switches for each player so they have a lot of options. I'm having trouble figuring out all the combinations? Would there be 8 or 9 possiblities?

I did the combination of 3 randomized switches like this,
Player 1A
Player 1B
Player 1C
So there would be like 8-9 combinations?

Is there something here that would tell you all the combinations of randomized switches?
Report, edit, etc...Posted by LegacyWeapon on 2005-06-17 at 15:08:20
There will be 2^x number of possiblities where x is the number of switches being used.

To count the possibilities, you need to count in binary. Quite simple:
0000
0001
0010
0011
0100
0101
0110
0111
1000
etc.

Just keep increasing the number by 1 and when the number is already 1, then carry over to the next place digit.

Like
0000 + 1 = 0001
0001 + 1 = 0010
0010 + 1 = 0011
etc.
Report, edit, etc...Posted by Kyuubi. on 2005-06-17 at 15:21:14
So would it be like 3 randomized switches have 9,4=6,etc? The problem is getting the possibilties into the triggers too..
If it did have 9...then i'm missing a possbility.

So far its like this,

Clear | Clear | Set
Clear | Set | Set
Clear | Clear | Clear

Set | Set | Clear
Set | Clear | Clear
Set | Clear | Set

Clear | Set |
Set | Clear |
Set | Set |

Anyone know the last possibility?Or is this it, i'm like brain dead right now... blink.gif
Report, edit, etc...Posted by MapUnprotector on 2005-06-17 at 15:32:09
... LW said 2^x and 3 switches so x = 3, 2^3 is 8, 2x2x2, so there are 8 possibilities.
Report, edit, etc...Posted by Kyuubi. on 2005-06-17 at 15:35:12
Oh nevermind them...for some reason I thought that '^',meant you had to square it...

Guess I got all the possibilities then...thanks
Report, edit, etc...Posted by (U)Bolt_Head on 2005-06-17 at 22:43:38
Yeah what Legacy said was missleading. He basicly told you there are 8 combinations
( '^' is used to indicate an exponent, if it was sqaured it would read number^2)

Anyways you do count of binary but you only use the number of bits that you have switches. So you should have

000
001
010
011
100
101
110
111

for a total of 8 combinations. I think Legacy was confused when he hit the last binary value of 111 = 7 cause he wasn't counting zero.
Report, edit, etc...Posted by LegacyWeapon on 2005-06-18 at 01:01:52
Wait what? :confused:

I didn't give him the possibilities... I was giving him the 0000 as an example, not as the possible values. Sorry for any confusion I might've caused.
Report, edit, etc...Posted by chuiu on 2005-06-18 at 10:59:36
LW was right. Taking 2[sup]x[/sup] you can find out the number of combinations for x number of switches.

Like say x = 3, in your demonstration.

2[sup]3[/sup] = 2 * 2 * 2 = 8
or x = 4
2[sup]4[/sup] = 2 * 2 * 2 * 2 = 16
Next Page (1)