Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/pkg/R/functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -2975,7 +2975,7 @@ setMethod("lpad", signature(x = "Column", len = "numeric", pad = "character"),

#' @details
#' \code{rand}: Generates a random column with independent and identically distributed (i.i.d.)
#' samples from U[0.0, 1.0].
#' samples uniformly distributed in [0.0, 1.0).
#' Note: the function is non-deterministic in general case.
#'
#' @rdname column_nonaggregate_functions
Expand Down
2 changes: 1 addition & 1 deletion python/pyspark/sql/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ def percentile_approx(col, percentage, accuracy=10000):
@since(1.4)
def rand(seed=None):
"""Generates a random column with independent and identically distributed (i.i.d.) samples
from U[0.0, 1.0].
uniformly distributed in [0.0, 1.0).

.. note:: The function is non-deterministic in general case.

Expand Down
4 changes: 2 additions & 2 deletions sql/core/src/main/scala/org/apache/spark/sql/functions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ object functions {

/**
* Generate a random column with independent and identically distributed (i.i.d.) samples
* from U[0.0, 1.0].
* uniformly distributed in [0.0, 1.0).
*
* @note The function is non-deterministic in general case.
*
Expand All @@ -1238,7 +1238,7 @@ object functions {

/**
* Generate a random column with independent and identically distributed (i.i.d.) samples
* from U[0.0, 1.0].
* uniformly distributed in [0.0, 1.0).
*
* @note The function is non-deterministic in general case.
*
Expand Down