Creative Commons Attribution License (CC BY 4.0).The mechanism of negative permittivity/permeability is still unclear in the random metamaterials, where the precise control of microstructure and electromagnetic properties is also a challenge due to its random characteristic. Here silver was introduced into porous SiO 2 microsphere matrix by a self-assemble and template method to construct the random metamaterials. The distribution of silver was restricted among the interstices of SiO 2 microspheres, which lead to the precise regulation of electrical percolation (from hoping to Drude-type conductivity) with increasing silver content. Negative permittivity came from the plasma-like behavior of silver network, and its value and frequency dispersion were further adjusted by Lorentz-type dielectric response. During this process, the frequency of epsilon-near-zero (ENZ) could be adjusted accordingly. Negative permeability was well explained by the magnetic response of eddy current in silver micronetwork. The calculation results indicated that negative permeability has a linear relation with 0.5 , showing a relaxation-type spectrum, different from the "magnetic plasma" of periodic metamaterials. Electromagnetic simulations demonstrated that negative permittivity materials and ENZ materials, with the advantage of enhanced absorption (40dB) and intelligent frequency selection even in a thin thickness (0.1 mm), could have potentials for electromagnetic attenuation and shielding. This work provides a clear physical image for the theoretical explanation of negative permittivity and negative permeability in random metamaterials, as well as a novel strategy to precisely control the microstructure of random metamaterials.