# Create A Random iCalendar Object

You will need an M8 compile of Nova (or later) for this to work.

## Name

> randical.cgi - a perl script to generate random iCalendar objects

## Synopsis

> randical.cgi [options]

## Description

> This perl script generates random iCalendar objects. It can be run from the command line or as a CGI script. Properties are either required or have a certain probability of appearing in the output.

> Command Line Options are:

> -bkw | Bad Key Words. Causes random characters to be inserted into keywords.
> -d | debug mode. Prints a bunch of messages.
> -fb | Generate random freebusy information
> -fbdh hours | The maximum number of full hours that a freebusy period can be. The larger hours becomes, the less likely it is that there will be multiple freebusy periods per day. The default value is 4 hours.
> -may n | Set probability of MAY components and properties to n, a number from 0 to 100. The default value is 5.
> -must n | Set probability of MUST components and properties to n, a number from 0 to 100. The default value is 95.
> -r | randomly add recurrence properties (RRULE, EXRULE, RDATE, EXDATE). By default, no recurrence properties are added.
> -ruin n | Set probability of ruining a keyword (adding some randomness to the spelling) to n, a number from 0 to 100. The default value is 10.
> -rcc | add a random number of components to the iCalendar object. By default, only one component is added.
> -should n | Set probability of SHOULD components and properties to n, a number from 0 to 100. The default value is 65.

Send comments and suggestions to sman.

## Examples

Run it by hand: | `perl randical.cgi -r`
Try it as a CGI script: |