Skip to content

The random() method is not inclusive. #43

@jaychang0917

Description

@jaychang0917

The doc said this method is inclusive, however, the following code prints '0' 20 times.

for (int i = 0; i < 20; i++) {
      System.out.println($.random(0,1));
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions