DbFunctionsExtensions.Random(DbFunctions) Method
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.
A random double number generator which generates a number between 0 and 1, exclusive.
public static double Random (this Microsoft.EntityFrameworkCore.DbFunctions _);
static member Random : Microsoft.EntityFrameworkCore.DbFunctions -> double
<Extension()>
Public Function Random (_ As DbFunctions) As Double
The DbFunctions instance.
A random double number between 0 and 1, exclusive.
This DbFunction method has no in-memory implementation and will throw if the query switches to client-evaluation. This can happen if the query contains one or more expressions that could not be translated to the store.
Product | Versions |
---|---|
Entity Framework Core | 6.0, 7.0, 8.0, 9.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: