module V1::Random

Overview

Module Random provides a facility for synthesizing pseudo-random images.

Extended Modules

Defined in:

v1/random/image.cr
v1/random/index.cr
v1/random/random.cr

Instance Method Summary

Instance Method Detail

def image(size : Int64, layers : Int64) #

image returns a pseudo-randomly generated Image.


[View source]
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.


[View source]