Skip to content

Error when using rand(Complex) #4431

@ghost

Description

This works fine: rand(Complex{Int64})
Likewise does: rand(Complex{Float64})
However this does not: rand(Complex)

I get this reported like a thousand times:

in rand! at random.jl:147
in rand at random.jl:152

Maybe include an instructive error message or defaulting it to a type when not supplied explicitly.

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