The approach previously used for analyzing density for the set of straight lines on a plane is applied to a set of polynomials instead of lines. As result, a formula for the average number of substantial roots for random polynomial, whose coefficients possess arbitrary compatible density, is obtained. The formula can be generalized for polynomials of several variables as well as on random point and vector fields.