You left out some details. If it's a laptop, its probably a loose screw or debris. If it's a desktop it could be as simple as wires bumping the case. But you can hear the difference. Also shaking a computer can definitely strain components such as the motherboard and gpu connections.