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();
For further actions, you may consider blocking this person and/or reporting abuse
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
Throws a not accessible prop exception, it needs to be initialized, at least then it works for me.