Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defining multiple infinite random sequences gives the same sequence #182

Closed
DanielVandH opened this issue Jun 30, 2024 · 0 comments
Closed

Comments

@DanielVandH
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant