RANDOM Function Syntax | Teradata Vantage - 17.00 - 17.05 - RANDOM Function Syntax - Advanced SQL Engine - Teradata Database

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

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
17.05
Published
June 2020
Language
English (United States)
Last Update
2021-01-30
dita:mapPath
tpt1555966086716.ditamap
dita:ditavalPath
lze1555437562152.ditaval
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.