# RandCycle (of `Cycle`)

class `RandCycle`

  Defined in RandCycle.sc.

  A cycler that oscillates back and forth between cels in a loop. See the init method for information on parameters.

  Sample usage:

      ; Make the star cycle between random cels 5 times.
      (star setCycle: RandCycle 5)

## Properties

Inherited from `Cycle`:

Property | Description
--- | ---
client |
caller |
cycleDir |
cycleCnt |
completed |
name |

Defined in RandCycle:

Property | Description
--- | ---
count |
reset |

## Methods

`init`(theClient [theCount theCaller shouldReset])

  Parameters: | theClient (heapPtr) – The object to which the cycler is attached. theCount (number) – Optional number of times to cycle. If not specified, or -1, cycling continues indefinitely. theCaller (heapPtr) – Optional caller object that will be cue’d when the cycling is complete. shouldReset (boolean) – Should the object go back to cel 0 after cycling is complete.

`doit`()

`nextCel`()

`cycleDone`()