Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. x = abs((population(mother,1) - population(father,1))/100
  2.  
  3. if population(mother,1) > population (father,1)
  4. if rand < x
  5. R = population(mother,2)
  6. else
  7. if rand < 0.5
  8. R = population(father,2)
  9. else
  10. R = population(mother,2)
  11. end
  12. end
  13. else
  14. if rand < x
  15. R = population(father,2)
  16. else
  17. if rand < 0.5
  18. R = population(mother,2)
  19. else
  20. R = population(father,2)
  21. end
  22. end
  23. end
  24.  
  25.  
  26. if population(mother,1) > population (father,1)
  27. if rand < x
  28. R = population(mother,2)
  29. else
  30. if rand < 0.5
  31. T = population(father,2)
  32. else
  33. T = population(mother,2)
  34. end
  35. end
  36. else
  37. if rand < x
  38. R = population(father,2)
  39. else
  40. if rand < 0.5
  41. T = population(mother,2)
  42. else
  43. T = population(father,2)
  44. end
  45. end
  46. end
  47.  
  48. if population(mother,1) > population (father,1)
  49. if rand < x
  50. R = population(mother,2)
  51. else
  52. if rand < 0.5
  53. W = population(father,2)
  54. else
  55. W = population(mother,2)
  56. end
  57. end
  58. else
  59. if rand < x
  60. R = population(father,2)
  61. else
  62. if rand < 0.5
  63. W = population(mother,2)
  64. else
  65. W = population(father,2)
  66. end
  67. end
  68. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement