diff --git a/django/core/db/backends/ado_mssql.py b/django/core/db/backends/ado_mssql.py index 944cf4b961..a13ac834b1 100644 --- a/django/core/db/backends/ado_mssql.py +++ b/django/core/db/backends/ado_mssql.py @@ -102,8 +102,7 @@ def get_limit_offset_sql(limit, offset=None): return sql def get_random_function_sql(): - # TODO: This is a guess. Make sure this is correct. - return "RANDOM()" + return "RAND()" def get_table_list(cursor): raise NotImplementedError