Skip to content

Commit

Permalink
Updating docs to show exclusive max
Browse files Browse the repository at this point in the history
  • Loading branch information
Gekctek committed Oct 2, 2024
1 parent 24aed41 commit be6749c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions mops.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ base = "0.12.0"

[package]
name = "xtended-random"
version = "1.0.0"
version = "1.0.1"
description = "A library for random helper funtions"
repository = "https://github.com/edjcase/motoko_random"
keywords = [ "random", "pseudo" ]
keywords = [ "random", "pseudo", "rng" ]
license = "MIT"

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/PseudoRandomX.mo
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ module {
currentSeed;
};

/// Generates a random integer within the specified range (exclusive).
/// Generates a random integer within the specified range (inclusive min, exclusive max).
///
/// ```motoko include=import
/// let prng : PseudoRandomGenerator = ...;
Expand All @@ -145,7 +145,7 @@ module {
min + (Nat32.toNat(randNat32) % rangeSize);
};

/// Generates a random natural number within the specified range (inclusive).
/// Generates a random natural number within the specified range (inclusive min, exclusive max).
///
/// ```motoko include=import
/// let prng : PseudoRandomGenerator = ...;
Expand Down
4 changes: 2 additions & 2 deletions src/RandomX.mo
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module {
?(randValue <= trueCount);
};

/// Generates a random integer within the specified range (inclusive).
/// Generates a random integer within the specified range (inclusive min, exclusive max).
/// Returns null if there's not enough entropy.
///
/// ```motoko include=import
Expand All @@ -89,7 +89,7 @@ module {
?randInt;
};

/// Generates a random natural number within the specified range (inclusive).
/// Generates a random natural number within the specified range (inclusive min, exclusive max).
/// Returns null if there's not enough entropy.
///
/// ```motoko include=import
Expand Down

0 comments on commit be6749c

Please sign in to comment.