Blazor, Blazor Webassembly, Dotnet Core, Net Core.
@for (int i = 0; i < count; i++) { <div class="col">🙉</div> } </div> </div> </div> @code { int count; protected override void OnInitialized() { NextQuestion(); } void NextQuestion() { // generate random number of monkeys count = Random.Shared.Next(1, 10); } } @page Directive @page "/" This