Function random [src]

Returns a std.Random structure backed by the current RNG.

Prototype

pub fn random(self: *Self) std.Random

Parameters

self: *Self

Source

pub fn random(self: *Self) std.Random { return std.Random.init(self, fill); }