キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

permutation combination

I am looking for a solution to get all possible number combinations out of an bigger amount of numbers.

For example: i have numbers from 1 till 30 and now i want to get all combinations just by taking 5 numbers.

I did find some part solutions here in the discussion forum but all of these just do it this way: you have 5 numbers and get all possible combinations of these five.

Is there anyone who can help me out with a solution?

Thx

0 件の賞賛
メッセージ1/4
3,390件の閲覧回数

That is generally just a similar equation using factorials and division.

 

http://www.lmgtfy.com/?q=permutations+adn+combinations

0 件の賞賛
メッセージ2/4
3,363件の閲覧回数

Of course I searched for it ... and even in google!

BUT i can't get on the right way...

0 件の賞賛
メッセージ3/4
3,353件の閲覧回数

What does "can't get on the right way" mean?

 

Calculating the number of permutation and/or combinations are basic math equations.

 

You just need to program them.

 

If you have already tried something and it is not working, then post your code, tell us how it isn't working correctly, and then we might be able to help you with it.

 

Is this homework?

0 件の賞賛
メッセージ4/4
3,350件の閲覧回数