Okay so I was converting something from JS into C# (chess algorithm) and after some considerable thinking I had no idea how to convert this specific line :
children.sort(function(a, b){return 0.5 - Math.random()});
Sorry if this sounds stupid but I am mediocre at best at C# and I was trying my best but this really confused me lol
P.S: if its of any use, a and b are not defined anywhere else in the code.
Tweaked around with it, basically hoping that it would work but it did not since idk how to convert the function(a, b) part into C#
Edit: Sorry but I forgot to include, the thing I am converting is for a challenge which is limited to .NET 6.0 and these namespaces:
System
System.Numerics
System.Collections.Generic
System.Linq
ChessChallenge.API (from the challenge)