SqlCeFunctions.Rand Method
Returns a pseudo-random float value from 0 through 1, exclusive.
Assembly: EntityFramework.SqlServerCompact (in EntityFramework.SqlServerCompact.dll)
Name | Description | |
---|---|---|
![]() ![]() | 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. |
SqlCeFunctions.Rand Method ()
Returns a pseudo-random float value from 0 through 1, exclusive.
SqlCeFunctions.Rand Method (Nullable<Int32>)
Returns a pseudo-random float value from 0 through 1, exclusive.
[DbFunctionAttribute("SqlServerCe", "RAND")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "seed")] public static Nullable<double> Rand( Nullable<int> seed )
Parameters
- seed
-
Type:
System.Nullable<Int32>
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.