ARC Pro

Upgrade to ARC Pro

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

setRandom

Digital.setRandom(port, [ezbIndex])

Parameters

port Digital port to set the value of.
ezbIndex (optional) Board index of the EZB to use.

Returns

The random value that the digital port was set to.

Description

Randomly sets the value of the specified digital port to either 0 or 1.