Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sudame committed Mar 1, 2022
1 parent 9b914e1 commit a0dcfc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PolyaUrnSimulator"
uuid = "4bcabfa6-eebd-487a-8b4a-99bb3a891d86"
authors = ["SUDA Mikihiro <[email protected]> and contributors"]
version = "0.2.2"
version = "0.2.3"

[deps]
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
Expand Down
2 changes: 1 addition & 1 deletion src/PolyaUrnSimulator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ end

function WSW!(buffer_size::Int, buffer::Vector{Int}, urn::Vector{Int}, exchanged::Int)
set = Set{Int}()
while length(set) == buffer_size
while length(set) != buffer_size
push!(set, rand(urn))
end
buffer .= collect(set)
Expand Down

0 comments on commit a0dcfc2

Please sign in to comment.