Skip to content

A random number with with START and END the same is not allowed? #10879

@KommuSoft

Description

@KommuSoft

fish, version 3.7.0

If we run random with the START and END the same, we get an error:

$ random 0 0
random: END must be greater than START

This makes it harder to use random as a tool in other scripts, since it might be possible that there is exact one option.

I think it would make sense to allow the START and END to be the same and thus then always return the START.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions