Class Random
- Namespace
- YndigoBlue.Velocity.Functions
- Assembly
- YndigoBlue.Velocity.dll
Represents the RANDOM mathematical function that generates a random number.
public class Random : Function, IElement, ICheckItem, IDefaultItem, IFilterItem
- Inheritance
-
Random
- Implements
Remarks
The RANDOM function generates a pseudo-random floating-point number. Database-specific implementations may vary: some databases use RANDOM() while others use RAND(). The function typically returns values between 0 and 1. This is useful for sampling data, shuffling results, or generating random test values. Note that RANDOM is not cryptographically secure and should not be used for security purposes.
Constructors
- Random(IEnumerable<IElement>)
Initializes a new instance of RANDOM with multiple elements.
- Random(IElement)
Initializes a new instance of RANDOM with an optional element.