Consider the numerical integration IntSd,w(f)=∫Sdf(x)w(x)dσ(x) for weighted Sobolev classes BWp,wr(Sd) with a Dunkl weight w and weighted Besov classes BBγΘ(Lp,w(Sd)) with the generalized smoothness index Θ and a doubling weight w on the unit sphere Sd of the Euclidean space Rd+1 in the deterministic and randomized case settings. For BWp,wr(Sd) we obtain the optimal quadrature errors in both settings. For BBγΘ(Lp,w(Sd)) we use the weighted least ℓp approximation and the standard Monte Carlo algorithm to obtain upper estimates of the quadrature errors which are optimal if w is an A∞ weight in the deterministic case setting or if w is a product weight in the randomized case setting. Our results show that randomized algorithms can provide a faster convergence rate than that of the deterministic ones when p>1. Similar results are also established on the unit ball and the standard simplex of Rd.