We investigate the probability distribution of the spins of primordial black holes (PBHs) formed in the universe dominated by a perfect fluid with the linear equation of state p = wρ, where p and ρ are the pressure and energy density of the fluid, respectively.We particularly focus on the parameter region 0 < w ≤ 1/3 since the larger value of the spin is expected for the softer equation of state than that of the radiation fluid (w = 1/3).The angular momentum inside the collapsing region is estimated based on the linear perturbation equation at the turn-around time which we define as the time when the linear velocity perturbation in the conformal Newtonian gauge takes the minimum value.The probability distribution is derived based on the peak theory with the Gaussian curvature perturbation.We find that the root mean square of the non-dimensional Kerr parameter √〈a 2 *〉 is approximately proportional to(M/M H)-1/3(6w)-(1+2w)/(1+3w), where M and M H are the mass of the PBH and the horizon mass at the horizon entry, respectively.Therefore the typical value of the spin parameter decreases with the value of w.We also evaluate the mass and spin distribution P(a *, M), taking account of the critical phenomena.We find that, while the spin is mostly distributed in the range of 10-3.9 ≤ a * ≤ 101.8 for the radiation-dominated universe, the peak of the spin distribution is shifted to the larger range 10-3.0 ≤ a * ≤ 100.7 for w = 10-3.