An electromagnetic weapon that includes semi-randomly arranged antenna elements and a central weapon computer. The antenna elements are coordinated to function as an active phased array capable of finding and executing a resonate mode of a target. The central weapon computer controls all the antenna elements, and is able to determine the location of all the antenna elements.