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 17 posts 120 karma points
    Apr 16, 2019 @ 10:22
    Lev Nuznyy
    0

    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 5273 posts 19288 karma points MVP 3x admin c-trib
    Apr 16, 2019 @ 16:40
    Alex Skrypnyk
    100

    Hi Lev

    Use this method:

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

    Thanks,

    Alex

  • Lev Nuznyy 17 posts 120 karma points
    Apr 17, 2019 @ 03:36
    Lev Nuznyy
    0

    thank Works great

    It turns out method Random () removed ?

Please Sign in or register to post replies

Write your reply to:

Draft