Generate boxes randomly