Guest User

Untitled

a guest
Jan 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. While kromosom > 0
  2. hari = 14
  3.  
  4. While hari > 0
  5. shift1 = 2
  6. dgv.Rows.Add()
  7. While shift1 >= 0
  8. listOrg = nrand.ToString
  9.  
  10. org = sql
  11. While org > 0
  12. counter1 = listOrg.Length
  13. counter2 = 0
  14. While counter1 > 0
  15. If counter2 = 0 Then
  16. nrand = rand1.Next(1, 7)
  17. End If
  18. If (listOrg.Chars(counter1 - 1).ToString <> nrand.ToString) Then
  19.  
  20. counter1 -= 1
  21. counter2 = 1
  22. Else
  23. counter2 = 0
  24. counter1 = listOrg.Length
  25. End If
  26. End While
  27. listOrg = listOrg + nrand.ToString
  28. org -= 1
  29.  
  30.  
  31. End While
  32. dgv.Item(shift1, dgv.RowCount - 1).Value = listOrg
  33. shift1 -= 1
  34. End While
  35. hari -= 1
  36. End While
  37. kromosom -= 1
  38. dgv.Rows.Add()
  39. dgv.Item(0, dgv.RowCount - 1).Value = "-----------------------------"
  40. dgv.Item(1, dgv.RowCount - 1).Value = "----------" + (kromosom + 1).ToString + "----------"
  41. dgv.Item(2, dgv.RowCount - 1).Value = "-----------------------------"
  42.  
  43. End While
Add Comment
Please, Sign In to add comment