Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
@page "/gerar-numero"
@inject GeradorDeNumeros GeraNumeros
<h1>Gerador de números aleatórios</h1>
<h3>O numero gerado foi @numero</h3>
@functions {
int numero;
protected override async Task OnInitAsync()
numero = GeraNumeros.GerarNumero(1, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment