Mode:
Duration:
1
2
3
4
5
6
7
8
9
const std = @import("std");
pub fn main() void {
var rng = std.rand.DefaultPrng.init(std.time.nanoTimestamp());
for (0..3) |i| {
const num = rng.random.int(i32) % 100 + 1;
std.debug.print("Random #{d}: {d}\n", .{i+1, num});
}
}Coding works best on desktop or with an external keyboard.