uQuery: Random never takes last element (applied from uComponents changeset 018bd63444b6)
This commit is contained in:
@@ -475,7 +475,7 @@ namespace umbraco
|
||||
public static Node GetRandom(this IList<Node> nodes)
|
||||
{
|
||||
var random = umbraco.library.GetRandom();
|
||||
return nodes[random.Next(0, (nodes.Count - 1))];
|
||||
return nodes[random.Next(0, nodes.Count)];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user