---
layout: doc
title: numbers / random
---
# random

### NAME

    random() - return a pseudo-random number, this is suitable for general
    simulation, but may be predictable.

### SYNOPSIS

    int random( int n );

### DESCRIPTION

    Return a pseudo-random number from the range [0 .. (n -1)] (inclusive).

