@model HelloWorldMvcApp.SampleViewModel
// Your collection of colors
string[] colors = {"red", "blue", "gray", "orange", "purple", "green", "yellow"};
// Create a random object
@foreach(var example in new List<string>(){ "A", "B", "C", "D","E"}){
<li style='color: @(colors.OrderBy(r => rnd.Next()).First())'>@example</li>