RANDOM Function Syntax | Teradata Vantage - 17.10 - RANDOM Function Syntax - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1145-171K
Language
English (United States)
RANDOM ( lower_bound, upper_bound )

Syntax Elements

lower_bound
An integer literal to define the lower bound on the closed interval over which a random number is to be selected.
The limits for lower_bound range from -2147483648 to 2147483647.
lower_bound must be less than or equal to upper_bound.
upper_bound
An integer literal to define the upper bound on the closed interval over which a random number is to be selected.
The limits for upper_bound range from -2147483648 to 2147483647.
upper_bound must be greater than or equal to lower_bound.