Skip to content

rand(Uniform(1f0, 2f0)) returns a Float64. #1995

@vboussange

Description

@vboussange

Very briefly:

@assert isa(rand(Uniform(1f0, 2f0)), Float32)

fails, while as expected,

@assert isa(rand(Normal(1f0, 2f0)), Float32)

does not error. Sorry I do not have much time to dig further.

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