Jump to content
giv

Aplicatie simpla de generare numere aleatoare VB .NET

Recommended Posts

Sursa arata cam asa:

Imports System.Math

Public Class frmPrincipal

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculeaza.Click

Dim intNr1 As Long

Dim intNr2 As Long

Dim intSuma As Long

intNr1 = CInt(Math.Ceiling(Rnd() * 1000000))

intNr2 = CInt(Math.Ceiling(Rnd() * 2000000))

intSuma = intNr1 * intNr2

txtNumar1.Text = intNr1.ToString

txtNumar2.Text = intNr2.ToString

txtNumar3.Text = (Round(Abs(Sqrt(intSuma * 3 - 15 - 143 / 3 * 147 - 1982)))).ToString

End Sub

Private Sub lblAbout_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblAbout.Click

MessageBox.Show("Aplicatie scrisa de GIV pentru www.reversing.ro", "Despre.", MessageBoxButtons.OK, MessageBoxIcon.Information)

End Sub

End Class

file.html

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...