// NewRandomCase generates a random test case
// n is the number of items, returns the knapsack capacity
NewRandomCase generates a random test case
n is the number of items, returns the knapsack capacity
// NewRandomCase generates a random test case // n is the number of items returns the knapsack capacity
func NewRandomCase(n int) int {
	ws = nil
	vs = nil
	for i := 0; i < n; i++ {
		ws = append(ws, rand.Intn(100))
		vs = append(vs, rand.Intn(100))
	}
	capacity := rand.Intn(100)
	return capacity
}
func NewRandomCase ( n int ) int { ws = nil vs = nil for i := 0 ; i < n ; i ++ { ws = append ( ws , rand . Intn ( 100 ) ) vs = append ( vs , rand . Intn ( 100 ) ) } capacity := rand . Intn ( 100 ) return capacity }
NewRandomCase generates a random test case
n is the number of items, returns the knapsack capacity
NewRandomCase generates a random test case n is the number of items returns the knapsack capacity
// clear the old slices