Custom Array randomizer
$15-25 USD / hora
Need a custom array randomizer function.
-Start with a source array, like the 15 element example below.
-Array is built from results of sql db query. Usually less than 100 rows.
-Need to randomize the order of rows, similar to shuffle() - BUT, rows where the second element
"groupid" is non-null must always be kept together. They will always start out together also.
-Rows within each groupid must also be randomized within the group.
-Another way to look at it would be, two layers of randomizing the rows:
1) Treating all groups of matching (non-null) groupid as a sinlgle unit, randomize the row order.
2) Next, randomize the row order within each group of non-null groupid.
$original = array(
array('seq'=>1, 'groupid'=>null, ...),
array('seq'=>2, 'groupid'=>null, ...),
...
array('seq'=>13, 'groupid'=>1, ...),
array('seq'=>14, 'groupid'=>1, ...),
array('seq'=>15, 'groupid'=>null, ...),
);
Nº del proyecto: #5843155
Sobre el proyecto
8 freelancers están ofertando un promedio de $20 / hora por este trabajo
I can help you with this in 8 hours starting now. I have done similar php projects, some of them here on freelancer. Send me a message if interested. Thanks.
Hi, I am an expert in PHP and algorithms. I am sure that I can handle this task. Ready to start now. Would you like to give me this opportunity? Thanks
Hi Thank you for your reply. I have reviewed your links and i am sure we can provide you a complete functional desired output. then model we have shown you is just an example that we understand the functionality Más