Skip to content

rand(num) won't work with big_ints #5647

Closed
@jzakiya

Description

crystal 0.24.1

translating code from Ruby and hit this bug when doing

rand(self-4)  

when self is big_int

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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