Skip to content

Commit

Permalink
reduce range
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-aws committed Feb 29, 2024
1 parent ab58c82 commit b613ff6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/java/TestSamplers.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static void main(String[] args) {

DafnyVMC.Random r = new DafnyVMC.Random();

for (int a = 1; a < 10000; a++) {
for (int a = 1; a < 1000; a++) {
BigInteger i = BigInteger.valueOf(a);

System.out.println("Testing Uniform(" + a + ")");
Expand Down Expand Up @@ -50,7 +50,7 @@ public static void main(String[] args) {
SecureRandom rng = new SecureRandom();
DafnyVMC.Random t = new DafnyVMC.Random(() -> rng);

for (int a = 1; a < 10000; a++) {
for (int a = 1; a < 1000; a++) {
BigInteger i = BigInteger.valueOf(a);
System.out.println("Testing Uniform(" + a + ")");
System.out.println(t.UniformSample(i));
Expand Down
2 changes: 1 addition & 1 deletion docs/py/TestSamplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def main():

r = DafnyVMC.Random()

for i in range(1, 10000):
for i in range(1, 1000):
print("Testing Uniform("+str(i)+")")
print(r.UniformSample(i))

Expand Down

0 comments on commit b613ff6

Please sign in to comment.