TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > C#(C Sharp)

Find minimum value in random number array

C#(C Sharp)

 
 
Thread Tools Display Modes
Unread 03-02-2013, 01:51 PM   #1
Harold3425
Guest
 
Posts: n/a
Find minimum value in random number array

Hi

How can i find the minimum value in this random number array.

Random random = new Random();

int[] numbers = new int[10];

for (int i = 1; i < numbers.Length; i++)
{
numbers[i] = random.Next(1, 19);

Console.WriteLine(numbers[i]);
}

Console.ReadLine();

Thanks for your feedback.
 
Unread 03-02-2013, 03:38 PM   #2
Elite Member (1000+)
 
echo off's Avatar
 
Join Date: Mar 2010
Location: Folkestone, UK
Posts: 2,449
Thanks: 240
Thanked 432 Times in 378 Posts
Mood: Tired
Blog Entries: 10
Rep Power: 6315 echo off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguished

Intel Nvidia

Windows 98 / Windows ME Windows NT / Windows 2000 Windows XP Windows Vista Windows 7 Linux Mac OS


Re: Find minimum value in random number array

I do believe it would be SomeArray.Min()
echo off is offline  
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Random Number Question Bryan Parkoff Apple 9 06-05-2008 09:32 PM
TML Pascal II Random Number limtc Apple 3 26-11-2007 09:32 AM
Flaw in Window’s random number generator The poster formerly known as 'The Poster Formerly Known as Nina DiBoy' Windows Vista All 4 16-11-2007 02:58 AM
Random ID Number? Paddy Mac Microsoft SQL Server 5 29-10-2007 05:12 PM
Random Number Generation Anil Gupte C#(C Sharp) 8 21-10-2007 05:02 PM


< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 11:16 PM.


vBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2013, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional