SqlCeFunctions.Rand Method

 

Returns a pseudo-random float value from 0 through 1, exclusive.

Namespace:   System.Data.Entity.SqlServerCompact
Assembly:  EntityFramework.SqlServerCompact (in EntityFramework.SqlServerCompact.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticRand()

Returns a pseudo-random float value from 0 through 1, exclusive.

System_CAPS_pubmethodSystem_CAPS_staticRand(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.

[DbFunctionAttribute("SqlServerCe", "RAND")]
public static Nullable<double> Rand()

Return Value

Type: System.Nullable<Double>

The pseudo-random value.


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.

Return Value

Type: System.Nullable<Double>

The pseudo-random value.