I am currently using the following to obtain 30 random products to display on the home page. From HomepageProducts.cshtml:
var products = Model.Products.OrderBy(x => Guid.NewGuid()).Take(30);
It works fine, however, it only provides a selection of random products that have been designated as "Show on Home Page" in the Admin tool. I would prefer to obtain a number of random products regardless if they are designated as "Show on Home Page" or not.
Is it possible to obtain 30 random products without concern of whether or not they are "Show on Home Page"?
I suspect the change I need to make is not to HomepageProducts.cshtml, but rather to ProductModel.cs. Unfortunately for me, I do not know what change I might need to make.