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 19 posts 122 karma points
    Apr 16, 2019 @ 10:22
    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 5730 posts 21691 karma points MVP 4x admin c-trib
    Apr 16, 2019 @ 16:40
    Alex Skrypnyk

    Hi Lev

    Use this method:

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



  • Lev Nuznyy 19 posts 122 karma points
    Apr 17, 2019 @ 03:36
    Lev Nuznyy

    thank Works great

    It turns out method Random () removed ?

Please Sign in or register to post replies

Write your reply to: