0 Members and 1 Guest are viewing this topic.
*Sigh*can we keep this on topic? The topic is about what the big thing might be, NOT SEX
wow you have a cool mommine never would do that
When you have a list of numbers, say you had {1,2,3,4,5,6} and you do Ans=3, it would test if each element is 3 so you would get {0,0,1,0,0,0}. 2(Ans=3) would give: {0,0,2,0,0,0} since every element gets multiplied by 2. 4(Ans=5) would similarly give: {0,0,0,0,4,0}. Adding each element together: {0,0,2,0,4,0} then doing a sum adds all the elements together so you'd end up with 6 as your answer.Basically it is generating a random even number with a weird distribution where the average value is 6, minimum value is 0 and maximum value is 24.
So that's where the list comes from...My mom just texted me to remind me about the specific part of that line of code that she was particularly confused by. She wants to know what "Ans=3" and "Ans=5" means.
sum(2({1,3,3,6,5}=3)+4({1,3,3,6,5}=5↓sum(2{0,1,1,0,0}+4{0,0,0,0,1↓sum({0,2,2,0,0}+{0,0,0,0,4↓sum({0,2,2,0,4↓8