random-data

Synopsis

(random-data length)

Parameters

length : A positive integer not smaller than 1

Description

This procedure returns random data as a string or byte-vector with the specified length.

Side Effects

Return Value

The random data as a string.

Example

> (random-data 1)
"%"
> (random-data 10)
"3_\145\199\234[/\228\144\004"
>