Wondering if anyone had a random integer generator function for vb.net. I'm using: Code (Text): Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Enabled = True While Timer1.Enabled = True SendKeys.Send(key1.Text) Pause(minspeed.Text) SendKeys.Send(key2.Text) Pause(minspeed.Text) End While End Sub But I need to have the pause(___) be a random integer between minspeed.text and maxspeed.text Anyone? (VB.net) thanks, Fexxel
Timer1.Interval = ((Integer.Parse(MaxSpeed.Text) - Integer.Parse(MinSpeed.Text)) * Rnd() + Integer.Parse(MinSpeed.Text)) * 1000