random number generators

waterballoon

New Member
Joined
Jun 15, 2011
Messages
35
I'm trying to generate random batches of non-repeating numbers. Can't seem to find the right formula out there. They are combinations of 8 numbers from a larger selection depending on the group. Trying to write a UDF where I can use with any amount of numbers.

Any thoughts out there?

Thanks in advance.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I'm curious to find if there is a combination of formulas I can plug into the cells to generate the numbers for me. I'm just expecting to get circular references...
 
Upvote 0
At a stab, the below has numbers generated at random - someoen else may expand on this but the results I would filter and remove the first decimal place, then check if random, how many are you looking to generate>?

<b>Excel 2003</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-align: right;;">123456789</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">0.16466030</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">0.92222671</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">0.15895012</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">0.43668928</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">0.02472928</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">0.16105543</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">6.31706945</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A2</th><td style="text-align:left">=RAND(<font color="Blue"></font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A3</th><td style="text-align:left">=RAND(<font color="Blue"></font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A4</th><td style="text-align:left">=RAND(<font color="Blue"></font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A5</th><td style="text-align:left">=RAND(<font color="Blue"></font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A6</th><td style="text-align:left">=RAND(<font color="Blue"></font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A7</th><td style="text-align:left">=RAND(<font color="Blue"></font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A8</th><td style="text-align:left">=RAND(<font color="Blue"></font>)*8</td></tr></tbody></table></td></tr></table><br />
 
Upvote 0
Note cell A8 I was testing.

At a stab, the below has numbers generated at random - someoen else may expand on this but the results I would filter and remove the first decimal place, then check if random, how many are you looking to generate>?

<b>Excel 2003</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-align: right;;">123456789</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">0.16466030</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">0.92222671</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">0.15895012</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">0.43668928</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">0.02472928</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">0.16105543</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">6.31706945</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A2</th><td style="text-align:left">=RAND(<font color="Blue"></font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A3</th><td style="text-align:left">=RAND(<font color="Blue"></font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A4</th><td style="text-align:left">=RAND(<font color="Blue"></font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A5</th><td style="text-align:left">=RAND(<font color="Blue"></font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A6</th><td style="text-align:left">=RAND(<font color="Blue"></font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A7</th><td style="text-align:left">=RAND(<font color="Blue"></font>)</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">A8</th><td style="text-align:left">=RAND(<font color="Blue"></font>)*8</td></tr></tbody></table></td></tr></table><br />
 
Upvote 0
What I'm trying to accomplish (maybe an explanation will help find a solution):

I have a different pools of players in the amounts of 15, 16, 17, 18, 9, 10, 11, 12, 13, 14.

I want to put them in groups of 8 (to play 4 vs 4) so that they play against/with someone different for the most part in every game and that they all play the same amount of games relatively.

Play a total of 12 games each. (3 a day for 4 days).

I already finished the pool for 8 players but it got so tedious that I decided to search another avenue. Also was supplied with a group of numbers generated for the 13 player pool (thanks for that). Just need to know how to do it!

Thanks!
 
Upvote 0
Im still none the wiser, maybe someone else can assist from here. Good Luck.

Failing that, post a slecetion of your data to assist with the answer.
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top