Surface effects and statistical laws of defects in primary radiation