Skip to content

Some sort of memory error in random number generation #1

@Keno

Description

@Keno
julia> xs = rand(Float80, 10000)
ERROR: ReadOnlyMemoryError()
Stacktrace:
 [1] setindex! at ./array.jl:780 [inlined]
 [2] rand! at /Users/kfischer/Projects/julia-doublecheck/usr/share/julia/stdlib/v1.4/Random/src/Random.jl:268 [inlined]
 [3] rand! at /Users/kfischer/Projects/julia-doublecheck/usr/share/julia/stdlib/v1.4/Random/src/Random.jl:264 [inlined]
 [4] rand(::Random.MersenneTwister, ::Type{Float80}, ::Tuple{Int64}) at /Users/kfischer/Projects/julia-doublecheck/usr/share/julia/stdlib/v1.4/Random/src/Random.jl:285
 [5] rand at /Users/kfischer/Projects/julia-doublecheck/usr/share/julia/stdlib/v1.4/Random/src/Random.jl:286 [inlined]
 [6] rand(::Type{Float80}, ::Int64) at /Users/kfischer/Projects/julia-doublecheck/usr/share/julia/stdlib/v1.4/Random/src/Random.jl:289
 [7] top-level scope at REPL[2]:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions