Generate and display 5 random floating point values from 0 to 5
Imports System Imports System.Globalization Public Class MainClass Public Shared Sub Main() Dim rand As New Random() Console.WriteLine("Five Doubles between 0 and 5.") For ctr As Integer = 0 To 4 Console.Write("{0,8:N3}", rand.NextDouble() * 5) Next End Sub 'Main End Class