Split an array into two evenly by it's values
<pre><code>array
1703 =&gt; float 15916.19738
5129 =&gt; float 11799.15419
33 =&gt; float 11173.49945
1914 =&gt; float 8439.45987
2291 =&gt; float 6284.22271
5134 =&gt; float 5963.14065
5509 =&gt; float 5169.85755
4355 =&gt; float 5153.80867
2078 =&gt; float 3932.79341
31 =&gt; float 3924.09928
5433 =&gt; float 2718.7711
3172 =&gt; float 2146.1932
1896 =&gt; float 2141.36021
759 =&gt; float 1453.5501
2045 =&gt; float 1320.74681
5873 =&gt; float 1222.7448
2044 =&gt; float 1194.4903
6479 =&gt; float 1074.1714
5299 =&gt; float 950.872
3315 =&gt; float 878.06602
6193 =&gt; float 847.3372
1874 =&gt; float 813.816
1482 =&gt; float 330.6422
6395 =&gt; float 312.1545
6265 =&gt; float 165.9224
6311 =&gt; float 122.8785
6288 =&gt; float 26.5426
</code></pre>

<p>I would like to distribute this array into two arrays both ending up with a grand total (from the float values) to be about the same. I tried K-Clustering but that distributes higher values onto one array and lower values onto the other array. I'm pretty much trying to create a baseball team with even player skills.</p>
