2017-10-18 HW

posted Oct 18, 2017, 6:25 AM by Konstantinovich Samuel   [ updated Oct 18, 2017, 9:14 AM ]
HW Netlogo Videos:
Also: Think about how to break up a complex setup procedure.

Goal Random?!?!?!?!

Q: Test the following commands several times, record the results
random 3
random -3
random-float 3  (don't record ALL the digits, 3 decimal places is fine!)
random-float -3

Q: Predict the range of results for these: (inclusive? exclusive? integers? floating points?)
(assuming p is positive and n is negative, and both p and n are integers)
random p
random n
random-float p
random-float n

Q: How do you make a range START at a number e.g. 
integers 4 to 8 (inclusive) 
integers 1 to 5 (inclusive)
floating point numbers from 4.0 to 10.0 (including 4.0, excluding 10.0)

Q: How can you generate x-values on the left side of the screen?
List several different ways (either floating point or integer)