+ Reply to Thread
Results 1 to 8 of 8

Pseudorandomisation

  1. #1
    Registered User
    Join Date
    08-04-2017
    Location
    Munich
    MS-Off Ver
    Excel 2010
    Posts
    40

    Pseudorandomisation

    Dear Excel Experts,

    I have a list of all possible order comibnations (it is 720) of 6 numbers, so 1-2-3-4-5-6, 1-2-3-4-6-5,... (see attachement, A1:F720).
    From this list I would like to pseudorandomly draw X combinations in a way that each number is equally often on each position. In column J:O I gave an example of 6 combinations but it would be great if it is also possible with 120 combinations for example.
    Could you help me with this please?

    Thank you!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Pseudorandomisation

    No attachment ...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-04-2017
    Location
    Munich
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Pseudorandomisation

    Sorry. Here it comes.
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Pseudorandomisation

    i
    j
    k
    l
    m
    n
    o
    p
    q
    1
    83
    1
    5
    3
    6
    2
    4
    i1: =randbetween(1, 720)
    2
    491
    5
    1
    3
    6
    4
    2
    j1:o1: {=index(a1:f720, i1, 0)}
    3
    569
    5
    4
    6
    1
    2
    3
    4
    260
    3
    1
    6
    5
    2
    4
    5
    61
    1
    4
    5
    6
    2
    3
    6
    630
    6
    2
    3
    5
    1
    4
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    08-04-2017
    Location
    Munich
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Pseudorandomisation

    Thank you!
    But how does this formula control for that every number is in every column euqally often?
    So when I draw 120 combinations e.g., then column A contains 20 x 1, 20 x 2, 20 x 3, 20 x 4, 20 x 5, 20 x 6 and so does column B - F.
    Thank you!

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Pseudorandomisation

    Try with in "H1"
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy paste down till end.
    "J1"
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy paste across.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  7. #7
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Pseudorandomisation

    I think what you are asking is incredibly difficult to to, if I understand what you are asking correctly 20 of each of the 6 numbers in each of the six columns. Trying to apply this with randomness is not easy to do, when you get towards the bottom of the list it is virtually impossbile

  8. #8
    Registered User
    Join Date
    08-04-2017
    Location
    Munich
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Pseudorandomisation

    Yes, you are right, it is really difficult and I have been trying to come up with a solution for a while. Yes, at the bottom of the list it is almost impossible.
    But what about a formula that draws 60 random combinations out of the 720 possible combinations in which 10 of each of the 6 numbers are in each of the six columns?
    Would that be possible?
    That would already help me a lot.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1