Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Lev Nuznyy 5 posts 88 karma points
    6 days ago
    Lev Nuznyy

    Does not see the method random

    Hello Faced such a problem

    When prompted, does not see the sorting Random()

    enter image description here

    Who faced?

    On version 7.X, I successfully applied this sorting technique

  • Alex Skrypnyk 5178 posts 18869 karma points MVP 2x admin c-trib
    6 days ago
    Alex Skrypnyk

    Hi Lev

    Use this method:

    Model.Parent.Children.Where(x => x.Id != Model.Id).OrderBy(t => Guid.NewGuid()).Take(6)



  • Lev Nuznyy 5 posts 88 karma points
    5 days ago
    Lev Nuznyy

    thank Works great

    It turns out method Random () removed ?

Please Sign in or register to post replies

Write your reply to: