random(3tcl)

random3tcl

Create and manipulate randomizer channels

Usage

package require Tcl

package require memchan

random


    


    


    

Overview

random

creates a random channel which absorbs everything written into it and uses it as a seed for a random number generator. This generator is used to create a random sequence of bytes when reading from the channel. It is not possible to seek the channel.

Options

Memory channels created by random provide one additional option to set or query.

-delay ?milliseconds?

A random channel is always writable and readable. This means that all fileevent-handlers will fire continuously. To avoid starvation of other event sources the events raised by this channel type have a configurable delay. This option is set in milliseconds and defaults to 5.

Keywords

channel, i/o, in-memory channel, random

Releases

9 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0–6.0
  2. 7
  3. 8–12
  4. 13

From tcl-memchan 2.3+dfsg-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.