Distribution of roots of random real generalized polynomials