Well the random 2 will give value at random either 0 or 1 and the that value is being compared to the 0 as instructed by the " random 2 = 0" command and if the value given by random 2 is 0 the the statement is true and reports true ... And if the value given by the random 2 is 1 the the statement is false ... And reports false ... Also note we choose random 2 because "random n "(where n is any integer) command generates and random integer value from 0 to n-1 .
I don't think i learned anything doing this exercise, the inferences put forward were not very well explained especially when it came to the "random 2=0" but the course is enjoyable so far
Triggered by the slight zoom in that happened at 0:59
Can you make a coding to make turtles move left or right and up or down randomly? Thanks
I am still confused with the statement "random 2 = 0". Can someone explain this please? Thanks!
So basically it returns true or false, random will get you a random number between 0 and 1 if it's 0 it will return true otherwise false
Well the random 2 will give value at random either 0 or 1 and the that value is being compared to the 0 as instructed by the " random 2 = 0" command and if the value given by random 2 is 0 the the statement is true and reports true ... And if the value given by the random 2 is 1 the the statement is false ... And reports false ...
Also note we choose random 2 because "random n "(where n is any integer) command generates and random integer value from 0 to n-1 .
Thank you 🙏
thank you!!
¡Muchas gracias!
I don't think i learned anything doing this exercise, the inferences put forward were not very well explained especially when it came to the "random 2=0" but the course is enjoyable so far
11:58
Here's an idea for a first Netlogo project, a re-creation of Papers, Please: ua-cam.com/video/96PTiktvVl8/v-deo.html