-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #263 from cicirello/array-free
Added array-free version of nextIntPair methods in RandomIndexer and EnhancedRandomGenerator
- Loading branch information
Showing
6 changed files
with
166 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* rho mu - A Java library of randomization enhancements and other math utilities. | ||
* Copyright (C) 2017-2024 Vincent A. Cicirello, <https://www.cicirello.org/>. | ||
* | ||
* This file is part of the rho mu library. | ||
* | ||
* The rho mu library is free software: you can | ||
* redistribute it and/or modify it under the terms of the GNU | ||
* General Public License as published by the Free Software | ||
* Foundation, either version 3 of the License, or (at your | ||
* option) any later version. | ||
* | ||
* The rho mu library is distributed in the hope | ||
* that it will be useful, but WITHOUT ANY WARRANTY; without even | ||
* the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
* PARTICULAR PURPOSE. See the GNU General Public License for more | ||
* details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with the rho mu library. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
package org.cicirello.math.rand; | ||
|
||
/** | ||
* A pair of indexes. Instances of IndexPair are returned by some methods of other classes, such as | ||
* {@link RandomIndexer} and {@link EnhancedRandomGenerator}, that generate random pairs of indexes. | ||
* | ||
* @param i one of the indexes of the pair | ||
* @param j the other index of the pair | ||
* @author <a href=https://www.cicirello.org/ target=_top>Vincent A. Cicirello</a>, <a | ||
* href=https://www.cicirello.org/ target=_top>https://www.cicirello.org/</a> | ||
*/ | ||
public record IndexPair(int i, int j) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters