Thank you for the article, it's great for learning zig when used to higher level languages. I noticed a bug. When getting a Random struct before setting the range
var prng = std.rand.DefaultPrng.init(seed);
// the 'random' access here:
const rand = &prng.random;
const target_number = rand.intRangeAtMost(u8, 1, 100);
Throws a not accessible prop exception, it needs to be initialized, at least then it works for me.
const rand = &prng.random();
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
For further actions, you may consider blocking this person and/or reporting abuse
Take off every Zig!