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

SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
SQL_Functions__Expressions__and_Predicates.Upload_071421/djk1612415574830.ditamap
dita:ditavalPath
SQL_Functions__Expressions__and_Predicates.Upload_071421/wrg1590696035526.ditaval
dita:id
B035-1145
lifecycle
previous
Product Category
Teradata Vantageā„¢
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.