Skip to content

wrong problem 3 solution: random inclusive range #84

@towc

Description

@towc
Image

This leads to rangeStart and rangeEnd appearing with half the frequency of everything in between, Math.round is not the solution here, you should use Math.floor(rangeStart + rangeEnd + 1)

see below for how the distribution with round looks:

Image

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions