SqlCeFunctions.Rand Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Rand() |
Returns a pseudo-random float value from 0 through 1, exclusive. |
Rand(Nullable<Int32>) |
Returns a pseudo-random float value from 0 through 1, exclusive. |
Rand()
Returns a pseudo-random float value from 0 through 1, exclusive.
[System.Data.Entity.DbFunction("SqlServerCe", "RAND")]
public static Nullable<double> Rand ();
static member Rand : unit -> Nullable<double>
Public Shared Function Rand () As Nullable(Of Double)
Returns
The pseudo-random value.
- Attributes
Applies to
Rand(Nullable<Int32>)
Returns a pseudo-random float value from 0 through 1, exclusive.
[System.Data.Entity.DbFunction("SqlServerCe", "RAND")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="seed")]
public static Nullable<double> Rand (Nullable<int> seed);
static member Rand : Nullable<int> -> Nullable<double>
Public Shared Function Rand (seed As Nullable(Of Integer)) As Nullable(Of Double)
Parameters
The seed value. If seed is not specified, the SQL Server Database Engine assigns a seed value at random. For a specified seed value, the result returned is always the same.
Returns
The pseudo-random value.
- Attributes
Applies to
Entity Framework