Skip to content

Defining multiple infinite random sequences gives the same sequence #182

@DanielVandH

Description

@DanielVandH

From my #181 there's an issue:

julia> using InfiniteArrays

julia> ir = InfiniteArrays.InfRandVector
InfiniteArrays.InfRandVector

julia> kp = ir()
ℵ₀-element InfiniteArrays.InfRandVector{Float64, DataType, Random.Xoshiro} with indices 1:∞:
 0.19922558456988182
 0.3668020109378116
 0.45585651781311154
 0.022768009457710292
 0.8892927687309513
 

julia> kp2 = ir()
ℵ₀-element InfiniteArrays.InfRandVector{Float64, DataType, Random.Xoshiro} with indices 1:∞:
 0.19922558456988182
 0.3668020109378116
 0.45585651781311154
 0.022768009457710292
 0.8892927687309513
 

julia> kp[1:1000] == kp2[1:1000]
true

It would probably be ideal that kp and kp2 would be different sequences

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