Create PHP function to MIX a few items randomly and unique

Closed Posted 6 years ago Paid on delivery
Closed Paid on delivery

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.

HTML JavaScript MySQL PHP Software Architecture

Project ID: #16134278

About the project

13 proposals Remote project Active 6 years ago

13 freelancers are bidding on average $33 for this job

irfan811

I have dedicated the last four years to website deign and development, I have extensive knowledge with a variety of applications and web languages including Adobe applications as well as in-depth expertise in CSS3, HTM More

$30 USD in 1 day
(220 Reviews)
7.4
Meagan26

php expert i can complete this for you Hello. I have read through your project and I am incredibly interested in taking on your project. I am an experienced developer with a diploma in the field of web developmen More

$35 USD in 1 day
(259 Reviews)
7.5
andrescoslop

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, $ More

$20 USD in 1 day
(10 Reviews)
6.6
manum11

i am experienced developer of php, mysql, i saw the description you provided i can complete your project.

$25 USD in 1 day
(35 Reviews)
5.5
mayankinnovative

A proposal has not yet been provided

$15 USD in 1 day
(193 Reviews)
4.8
nagraphics5

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 More

$25 USD in 2 days
(9 Reviews)
3.7
pankaj006

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.

$25 USD in 1 day
(2 Reviews)
1.1
garciaph

I am a computer scientist. I have great skills on programming efficiently (maybe performance isn't one of your goals, but it's something that's always nice to take on account) and on website development, since I worked More

$20 USD in 1 day
(0 Reviews)
0.0