> For the complete documentation index, see [llms.txt](https://wiki.thescriptersguild.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.thescriptersguild.com/scripting/nodes/math/random-boolean.md).

# Random Boolean

![](https://692276616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN06Vv6nlwviUQ4hI2Kkd%2Fuploads%2Fgit-blob-9dafb7cc0dcb0f36088b5491feaf02f0ab8a1552%2Frandom-boolean.png?alt=media)

## Description

Returns a random true/false value, with the given chance to return true. For example, choose a Percent Weighting of 60 to return true 60% of the time.

## Node Type

Nodes fall into two basic categories: Data and Execution. This node supplies Data for an Execution node.

## Inputs

| Input             | Type   | Required | Description                                     |
| ----------------- | ------ | -------- | ----------------------------------------------- |
| Percent Weighting | Number | Yes      | Percentage of times boolean should output TRUE. |

## Outputs

| Output | Type    | Description                   |
| ------ | ------- | ----------------------------- |
| Result | Boolean | The resulting random boolean. |

\
\
**Contributors**

AddiCt3d 2CHa0s
