imho the comments above do not add much more info then the code. I would explain why we set the seed and why we copy the ruptures.