+ Reply to Thread
Results 1 to 2 of 2

Thread: Specific set number generator

  1. #1
    Points: 1,956, Level: 26
    Level completed: 56%, Points required for next Level: 44

    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Specific set number generator




    Hi,

    I`m totally newbie in statistic and i would like to ask for help. I need to write a program for generating a list of numbers from a specific set and with some rules. For example, the allowed set is {1,2,4,5}.
    Rules are: generated numbers must be 7 digits long, number 2 can be included exactly 2 times. Number 5 can be included exactly 3 times. Example of the result could be:

    5551224
    5515224
    5512524
    5512254
    5512245
    2555214
    ...

    That means in every generated number, i need to have two numbers of 2, three numbers of 5, one 1 and one 4, in every combination.

    Could someone help me with algorithm please or at least tell me what is a name of my problem so i could google it ?

    Thanks a lot!

  2. #2
    Points: 2,183, Level: 28
    Level completed: 22%, Points required for next Level: 117

    Location
    Providence, RI
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by eyej View Post
    Hi,

    I`m totally newbie in statistic and i would like to ask for help. I need to write a program for generating a list of numbers from a specific set and with some rules. For example, the allowed set is {1,2,4,5}.
    Rules are: generated numbers must be 7 digits long, number 2 can be included exactly 2 times. Number 5 can be included exactly 3 times. Example of the result could be:

    5551224
    5515224
    5512524
    5512254
    5512245
    2555214
    ...

    That means in every generated number, i need to have two numbers of 2, three numbers of 5, one 1 and one 4, in every combination.

    Could someone help me with algorithm please or at least tell me what is a name of my problem so i could google it ?

    Thanks a lot!
    search for "generating a combination list"

+ Reply to Thread

           




Similar Threads

  1. Gaussian random number generator
    By secondrate in forum Probability
    Replies: 1
    Last Post: 10-01-2010, 02:44 PM
  2. Random Number Generator?
    By chiccaboom in forum SPSS
    Replies: 3
    Last Post: 11-16-2009, 03:54 AM
  3. Random Number Generator
    By fperri in forum General Discussion
    Replies: 1
    Last Post: 06-13-2007, 05:45 PM
  4. Random Number Generator
    By fperri in forum Probability
    Replies: 1
    Last Post: 06-08-2007, 05:06 AM
  5. a random number generator problem
    By misu200 in forum Probability
    Replies: 1
    Last Post: 05-19-2007, 01:07 AM

Posting Permissions

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






Advertise on Talk Stats