I am aware, that’s how I came across reservoir sampling in the first place
I needed to implement (weighted) random sampling in a C# library and took inspiration from StatsBase.
For OP, I think reservoir sampling is small and easy enough to implement without taking on the extra dependency.