---
name: "Testing.randomArray"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/Testing.randomArray"
---

# Testing.randomArray(3kaya)

Return a random array

## NAME

Testing::randomArray - Return a random array

## SYNOPSIS

**\[a\] randomArray(** *a() generator, Int minsize=0, Int maxsize=1000* **)**

## ARGUMENTS

**generator** A function that returns random elements of the given type.

**minsize** The minimum size of the array (optional, defaults to zero)

**maxsize** The minimum size of the array (optional, defaults to 1000)

## DESCRIPTION

Return a random array, with elements given by the generator function.

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

## RELATED

**Testing.randomCharArray (3kaya)**

**Testing.randomFloatArray (3kaya)**

**Testing.randomIntArray (3kaya)**

**Testing.randomStringArray (3kaya)**

**Testing.randomValue (3kaya)**
