This SQLite post explains how to use the SQLite random function with syntax and examples.
The SQLite random function can be used to return a random number.
The syntax for the random function in SQLite is:
random()
There are no parameters or arguments for the random function.
The random function can be used in the following versions of SQLite:
Let's look at some SQLite random function examples and explore how to use the random function in SQLite.
For example:
sqlite> SELECT random();
Output: -8257945920605071060 (your result will vary)
sqlite> SELECT random();
Output: -290446534240950472 (your result will vary)
sqlite> SELECT random();
Output: 6411371429727670350 (your result will vary)