Skip to content

Commit

Permalink
Update README (#151)
Browse files Browse the repository at this point in the history
By submitting this pull request, I confirm that my contribution is made
under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).
  • Loading branch information
stefan-aws committed Feb 16, 2024
1 parent e819db8 commit abd5960
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ class Test {
System.out.println(Arrays.toString(arr));

System.out.println("Example of Bernoulli sampling");
Rationals.Rational gamma = new Rationals.Rational(BigInteger.valueOf(3), BigInteger.valueOf(5));
System.out.println(r.BernoulliSample(gamma));
BigInteger num = BigInteger.valueOf(3);
BigInteger den = BigInteger.valueOf(5);
System.out.println(r.BernoulliSample(num,den));
}
}
```
Expand All @@ -39,8 +40,9 @@ $ java -jar docs/dafny/ExamplesRandom.jar
To run the examples in the `docs/java` directory, use the following commands:

```bash
$ bash scripts/build.sh
$ bash build/java/run.sh
$ export TARGET_LANG=java
$ bash scripts/build.sh
$ bash build/java/run.sh
```

## Dafny Testing
Expand Down

0 comments on commit abd5960

Please sign in to comment.