Navigation
Synopsis Generate an arbitrary rational value.
Function
  1. rat arbRat()
  2. rat arbRat(int limit1, int limit2)
Usage import util::Math;
Examples
rascal>import util::Math;
ok
rascal>arbRat();
rat: 568124859r247974112
rascal>arbRat();
rat: 928223168r651463235
rascal>arbRat();
rat: -1560899236r764376357
rascal>arbRat(10,100);
rat: 9r2
rascal>arbRat(10,100);
rat: 1r10
rascal>arbRat(10,100);
rat: 1r9
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.