Skip to content

Random Integer lower bound #109

@smaspe

Description

@smaspe

in http://coffeescriptcookbook.com/chapters/math/random-integer
there is this

if not lower?
  [lower, upper] = [0, lower]

If lower does not exist, how can it be considered to use it as upper value?

(I considered using [0, upper], but since upper is after lower in the arguments, It would have its default value anyway. Number.MAX_VALUE, may be?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions