Syntaxrand(<minValue>, <maxValue>)CopyCopiedExamplesrand(1, 7)CopyCopiedA dice roll: 1 to 6Official documentation on Microsoft Learn ↗← PreviouspowNext →range