Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop CSharp
Title: intRandom1-100 Download
  • Category:
  • CSharp
  • Tags:
  • [Text]
  • File Size:
  • 1kb
  • Update:
  • 2013-11-20
  • Downloads:
  • 0 Times
  • Uploaded by:
  • yisimayi
 Description: class GetRandomArray { public GetRandomArray() { arr = new int[100] } int[] arr private bool checkNumber(int arrlist) { for (int i = 0 i < arrlist i++) { if (arr[i] == arr[arrlist]) { return true } } return false } //生成数组 public int[] produceRandomArray() { Random rd = new Random() for (int i = 0 i < 100 ++i) { //int temp=0 do { //temp = rd.Next(1, 101) //arr[i] = temp arr[i] = rd.Next(1, 101) } while (checkNumber(i)) } return arr } }
 Downloaders recently: [More information of uploader yisimayi]
 To Search:
File list (Check if you may need any files):
 

intRandom1-100.txt
    

CodeBus www.codebus.net