### Author Topic: Odd question but I'll give it a shot  (Read 428 times)

0 Members and 1 Guest are viewing this topic.

#### mr j

• Veteran Member
• Posts: 508
• Thanked: 224 times
• Gender:
##### Odd question but I'll give it a shot
« on: October 11, 2017, 05:23:16 AM »
Does anyone know where (maybe a link, sorry Kav) I can insert numbers in order to get sets? I'll be more clear.

Lets say 18 different numbers and I want *ALL* combinations of sets, 6 numbers per set. Random.org does not help. Any ideas?

Ken

The following users thanked this post: kav

#### Reyth

• Global Moderator
• Hero Member
• Posts: 4193
• Thanked: 1451 times
##### Re: Odd question but I'll give it a shot
« Reply #1 on: October 11, 2017, 06:45:13 AM »
Ok so pretty simple, only a few lines of code if you don't mind my 16M seeded PRNG.

Let me make sure I understand what you want.

There are 18 numbers you want to focus on.  If we can use High, that will be ideal for the program.

However, the twist here is that you want every possible combination of SIX NUMBERS as subsets of that total 18 number source, right?

Each number must be unique in the output, so nothing like 19 19 19 19 19 19 right?  So it would start 19, 20, 21, 22, 23, 24 and go all the way to 31, 32, 33, 34, 35, 36?

So let me guess you are focusing here on the equivalent of DS' within High or Low right?

The thing is you want the actual sets to reference not just the total number of possible sets?

I suppose once I get the details down, I could create a way for you to specify within a certain range, what sets you want to generate from a similarly specfiied source...
« Last Edit: October 11, 2017, 07:13:37 AM by Reyth »

The following users thanked this post: mr j

#### kav

• www.Roulette30.com
• Hero Member
• Posts: 2095
• Thanked: 1076 times
• Gender:
##### Re: Odd question but I'll give it a shot
« Reply #2 on: October 11, 2017, 12:04:43 PM »
How to calculate roulette probabilities: http://www.roulette30.com/2014/01/calculating-probability-roulette.html

The article explains the ! function.
"Practically for roulette purposes, a factorial shows in how many different ways, different items (or numbers) can be arranged. "

By using the ! function in the calculator included at the end of the article you can calculate whatever combination you want.

For 6 numbers there are 720 combinations.

The following users thanked this post: mr j

#### mr j

• Veteran Member
• Posts: 508
• Thanked: 224 times
• Gender:
##### Re: Odd question but I'll give it a shot
« Reply #3 on: October 11, 2017, 01:24:40 PM »
"So let me guess you are focusing here on the equivalent of DS' within High or Low right?" >> (lol) No, the lottery. I would never play 6 numbers on roulette.

Its really 15-18 numbers per. Kind of depends on whats hot at the time. Yes, all 6 numbers per set are unique. I had no idea it would be over 700 combinations, meaning, over \$700. Not to mention the TIME it takes to fill out those stupid slips!

Ken

The following users thanked this post: Reyth

#### kav

• www.Roulette30.com
• Hero Member
• Posts: 2095
• Thanked: 1076 times
• Gender:
##### Re: Odd question but I'll give it a shot
« Reply #4 on: October 11, 2017, 06:45:39 PM »
mrJ,

The 720 number includes same number sets. So if you mean 6 different numbers, there would be much less sets.

The following users thanked this post: mr j, Reyth

#### scepticus

• Hero Member
• Posts: 2401
• Thanked: 522 times
##### Re: Odd question but I'll give it a shot
« Reply #5 on: October 12, 2017, 10:53:48 AM »
18x17x16x15x14x13
divided by
6x5x4x3x2x1
=
18564  ?