Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,885 questions

51,811 answers

573 users

How to generate random numbers between 50 and 100 in VB.NET

1 Answer

0 votes
Imports System
				
Public Module Module1
	Public Sub Main()
		
		Dim rand As Random = new Random()
   
		For i As Integer = 1 To 75
            Console.WriteLine(rand.Next(50, 101))
		Next

	End Sub
	
End Module



' run:
'
' 63
' 75
' 77
' 50
' 79
' 72
' 53
' 85
' 92
' 73
' 84
' 51
' 81
' 89
' 77
' 50
' 96
' 100
' 98
' 83
' 90
' 66
' 87
' 52
' 51
' 84
' 63
' 71
' 100
' 87
' 76
' 54
' 87
' 78
' 80
' 93
' 100
' 70
' 86
' 97
' 62
' 97
' 68
' 58
' 60
' 69
' 79
' 87
' 97
' 59
' 85
' 96
' 67
' 87
' 97
' 97
' 89
' 75
' 99
' 95
' 58
' 82
' 85
' 55
' 97
' 80
' 65
' 53
' 59
' 84
' 50
' 75
' 63
' 50
' 71 

 



answered Jun 19, 2019 by avibootz

Related questions

1 answer 143 views
2 answers 235 views
1 answer 155 views
3 answers 243 views
1 answer 124 views
...