module V1::Random
Overview
Module Random provides a facility for synthesizing pseudo-random images.
Extended Modules
Defined in:
v1/random/image.crv1/random/index.cr
v1/random/random.cr
Instance Method Summary
-
#image(size : Int64, layers : Int64)
image returns a pseudo-randomly generated Image.
-
#index(size : Int, layers : Int, count : Int)
Index returns a pseudo-randomly generated ImageIndex with count images, each having the given number of layers of size byteSize.
Instance Method Detail
def index(size : Int, layers : Int, count : Int)
#
Index returns a pseudo-randomly generated ImageIndex with count images, each having the given number of layers of size byteSize.