lavezzi Posted June 15, 2009 Posted June 15, 2009 Hello,I need some one to code a function for me. I've not such time to do it bymyself (prolly im unable to do it).I don't know if I can post this here, so I do apologize if I was wrong.Please PM or write down your email with your bid and email.An example to explain what I need:I've X coins and Y boxes.For every possible distribution I need each possible permuations (each box contain at least 1 coin).So if I've 6 coins and 3 boxes the function should return:411 (distribution)141 (1st permutation)114 (2st permutation)321 (distribution)312 (1st permutation)231 (2nd permutation)213 (3rd permutation)132 (4th permutation)123 (5th permutation).......obviously the function should work with every kind of integer like X=5000 Y=12Payment:I want pay something around 50$I'll pay 10$ when the function do distribution and the rest when I do verify that it do also permutations correctly.I can pay only via paypal or netellerNote:I know this code should be easy to be made or that there are already those kind of functions out there, but i'm so busyI cannot do that bymyself. Thank you !
DCCD Posted June 15, 2009 Posted June 15, 2009 (edited) I usually charge more, but I'll do this for you for 30USD per 30mins . Edited June 15, 2009 by DCCD [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group
lavezzi Posted June 15, 2009 Author Posted June 15, 2009 (edited) I usually charge more, but I'll do this for you for 30USD per 30mins .Well, can u tell me the total price? Edited June 15, 2009 by lavezzi
Juvigy Posted June 15, 2009 Posted June 15, 2009 His total prise is 30$ Mine is 20$ If you wait long enough someone will do it for free.
Moderators SmOke_N Posted June 15, 2009 Moderators Posted June 15, 2009 (edited) I certainly don't want to step on any toes here, but if you've ever used AutoIt, there's actually already a function for it (_ArrayPermute). All you do is put in your distribution number, and it will give you the return permutation results you desire.There, took me about 15 seconds to type that, so make the $50.00 paypal payment donation to AutoIt ... Edited June 15, 2009 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
lavezzi Posted June 15, 2009 Author Posted June 15, 2009 (edited) I certainly don't want to step on any toes here, but if you've ever used AutoIt, there's actually already a function for it (_ArrayPermute). All you do is put in your distribution number, and it will give you the return permutation results you desire.There, took me about 15 seconds to type that, so make the $50.00 paypal payment donation to AutoIt ...You are perfecly right and I'll do a small donation to Autoit too, but as told before I've no time for it.btwDCCD 30$ wins due to timeout of the other. please send a mail to galaga987 AT hotmail DOT COM Edited June 15, 2009 by lavezzi
Moderators SmOke_N Posted June 15, 2009 Moderators Posted June 15, 2009 You are perfecly right and I'll do a small donation to Autoit too, but as told before I've no time for it.btwDCCD 30$ wins due to timeout of the other. please send a mail to galaga987 AT hotmail DOT COMWhat do you mean you have no time for it?I need some one to code a function for me. I've not such time to do it bymyself (prolly im unable to do it).I'm telling you it's already done! Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
James Posted June 15, 2009 Posted June 15, 2009 What do you mean you have no time for it?I'm telling you it's already done!Next time Smoke, just don't even tell them. You've done it for free, infact it's done and the stupid person is still paying for someone to give the same code as you did Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
Moderators SmOke_N Posted June 15, 2009 Moderators Posted June 15, 2009 Next time Smoke, just don't even tell them. You've done it for free, infact it's done and the stupid person is still paying for someone to give the same code as you did I'm starting to agree, but for others that see this thread... they should have some idea on how easy it is:#include <array.au3> $a_val = _Permute_Array("321") _ArrayDisplay($a_val) Func _Permute_Array($s_val, $s_delim = "") Local $a_split = StringRegExp($s_val, ".", 3) Return _ArrayPermute($a_split, $s_delim) EndFunc Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now