In algorithm 13.8 (page 245), I think it should be rand(1:len(X)) instead of rand(1:m).
And in algorithm 13.9 (page 246), I think it should be StatsBase.sample! or something like the "choices" function in Python that returns a list with a random selection from the 1:len(X) sequence instead of only 1:m sequence.
In algorithm 13.8 (page 245), I think it should be rand(1:len(X)) instead of rand(1:m). And in algorithm 13.9 (page 246), I think it should be StatsBase.sample! or something like the "choices" function in Python that returns a list with a random selection from the 1:len(X) sequence instead of only 1:m sequence.