public class Knapsack {
private static KnapsackFunction FF(final int n, final double size) {
final Item[] items = new Item[n];
try (Scoped<? extends Random> random =
RandomRegistry.scope(new LCG64ShiftRandom(123)))
{
for (int i = 0; i < items.length; ++i) {
items[i] = new Item(
nextDouble(random.get(), 0, 100),
nextDouble(random.get(), 0, 100)