randi

fnint randi() @safe nothrow @nogc

Returns a random integer between 0 and int.max (inclusive).