Skip to content

Commit

Permalink
Minors.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgiulietti committed Dec 4, 2024
1 parent d719031 commit 149b7f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private static Args randomHex(boolean forDouble) {
0x10));

int p = 0;
if (RANDOM.nextInt(8) != 0) { // 87.5% chance for a point
if (RANDOM.nextInt(8) != 0) { // 87.5% chance of point presence
int pointPos = RANDOM.nextInt(leadingZeros + digits + trailingZeros + 1);
sb.insert(leadingWhites + signLen + 2 + pointPos, '.');
p = -4 * (leadingZeros + digits + trailingZeros - pointPos);
Expand Down

0 comments on commit 149b7f0

Please sign in to comment.