k, make it 200

code:
function CDSorter($s, $m)
Dim $x, $z, $, $b
do
$ = split($s,",")
do
$[RND(ubound($))]=0
$b=0. $z=""
for $x=0 to ubound($)
$b = $b + $[$x]
if $[$x]
$z=$z+","+($x+1)
endif
next
until $b < $m
until $b > $m-1
$CDSorter=substr($z,2)
endfunction


Average CD Length = 44.54
Average Gap = 0.46
Average Gap [%] = 1.03

KiXtart
KiXtart Version = 4.21 Release Candidate 1
KiXGolf Script = kixgolf_cd.kix

Computer
OS = Windows 2000 Professional
CPU = Intel Pentium III
Speed = 797 MHz
Memory = 375 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: CD Sorter
Processing Start = 2003/03/16 03:01:47.116
Processing End = 2003/03/16 03:02:35.005
Duration = 0000/00/00 00:00:47.888
# Loops = 1
# Processed CDs = 12
# Valid CDs = 12
# Full CDs = 0
KiXGolf Result = Valid CD Filling
KiXGolf Score = 200

Thank you for participating in KiXtart Golf!
_________________________
!

download KiXnet