Skip to content

Commit c331d67

Browse files
Update stdlib_stats_distribution_uniform.fypp
1 parent a2a993d commit c331d67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stdlib_stats_distribution_uniform.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ module stdlib_stats_distribution_uniform
255255
if(bits_left < bits) exit L2
256256
u = shiftr(u, bits)
257257
nn = iand(u, mask)
258-
if(nn <= n) exit L1
258+
if(nn <= scale) exit L1
259259
bits_left = bits_left - bits
260260
end do L2
261261
end do L1

0 commit comments

Comments
 (0)