get random item
This block is part of the array group and was last modified in core v10.4.28.
Type Selection Required
This block requires you to select the data type you want to work with. You must manually select the type using the type selector modal. To access the modal, click the white button on the block.
Field Selection Required
This block requires field selection (out). You must manually select the fields you want to work with using the field selector modal. To access the modal, click the white button on the block.
get random item v10.4.28 Returns a random item from a array using crypto.randomInt.
- array required
arrayThe input array from which to extract a random item.
Outputs one uniformly random element of the array on the type-selected output pin (pin id value when no type is chosen), using a cryptographic random source, so each execution may pick a different element. An empty or missing array emits OUT_OF_RANGE on error and no item.
get random item needs no wired pins for a minimal setup; it is configured on the block itself.

Commonly used with
In production blueprints, this block is most often wired together with:
- get fields: feeds into this block. Gets the selected fields from the given object.
- custom field: this block feeds into it. get the value of a custom field with a custom value block, or dynamic value.
Version history
Introduced in v10.4.28.
Back to
array Return to the main group to view all sub-groups Back to array Return to the group to view all blocks within this group
