3 So Joshua and the whole military force set out to attack Ai. Joshua selected 30,000 fighting men and sent them out at night.