Create PHP function to MIX a few items randomly and unique
$10-30 USD
ชำระเงินเมื่อจัดส่ง
I have items, must be mix randomly, the result must be an array which contain only unique mixed items!
Details:
I have 5 item group with different number of items.
Group 1: rS1, rS2, rS3, rS4, rS5
Group 2: rA1, rA2, rA3, rA4, rA5, rA6, rA7, rA8, rA9
Group 3: rB1, rB2, rB3, rB4, rB5, rB6, rB7, rB8, rB9
Group 4: rC1, rC2, rC3, rC4, rC5, rC6
Group 5: rU1, rU2, rU3, rU4, rU5, rU6, rU7, rU8, rU9, rU10
Each item from the result must be contain 26 items:
1 item from "Group 1" + 9 items from "Group 2" + 9 items from "Group 3" + 6 items from "Group 4" + 1 item from "Group 5"
Examples:
- rS3,rA4,rA1,rA5,rA8,rA2,rA9,rA3,rA7,rA6,rB8,rB2,rB7,rB4,rB1,rB6,rB3,rB5,rB9,rC4,rC1,rC3,rC5,rC2,rC6,rU4
- rS5,rA3,rA5,rA2,rA1,rA4,rA7,rA8,rA6,rA9,rB5,rB1,rB3,rB6,rB2,rB9,rB7,rB4,rB8,rC2,rC1,rC6,rC4,rC3,rC5,rU9
- rS2,rA8,rA5,rA1,rA4,rA7,rA3,rA9,rA2,rA6,rB2,rB9,rB4,rB6,rB3,rB1,rB5,rB7,rB8,rC5,rC6,rC1,rC2,rC4,rC3,rU5
Once again: The result array must contain different (unique) 26 item sequences in all possible combination. The result array will bi inserted to a mysql table, 1 item = 1 row/field.
หมายเลขโปรเจค: #16134278
เกี่ยวกับโปรเจกต์
freelancer 13 คน กำลังเสนอราคาในงานนี้ โดยมีราคาเฉลี่ยอยู่ที่ $33
I have already done the array mix. Take a look at this lines of PHP code from the beggining of the script $Group1 = array($rS1, $rS2, $rS3, $rS4, $rS5); $Group2 = array($rA1, $rA2, $rA3, $rA4, $rA5, $rA6, $ เพิ่มเติม
i am experienced developer of php, mysql, i saw the description you provided i can complete your project.
Hello, I am PHP developer and can do your job as per your requirement. I understood your requirement and can do this. I am new on freelancer but have years experience in web development. Waiting for positive resp เพิ่มเติม
Please give us an opportunity to show our expertise in the same. I would like to work with you wid best outputs always. Please initiate chat so that we can discuss more and I can suggest you better.