# NOT RUN {
set.seed(1137)
ws = abs(rnorm(10))
tops = round(runif(10)*3)
#Simple case where the bucket limits change nothing
SoupX:::alloc(1,tops,ws)
#Case where some buckets get full
SoupX:::alloc(8,tops,ws)
# }
Run the code above in your browser using DataLab