<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Susan,<div class="">Thank you for pointing out the issue with the point of view… We will look into it…</div><div class=""><br class=""></div><div class="">In the meantime, I have an alternative solution in the attached world, which you may want to help your student with (I am not recommending that you just give this to your student, that depends on the age of the student and the goals of your course), but it may be a worthwhile exploration for him.</div><div class=""><br class=""></div><div class="">It involves the use of variables, and taking advantage of a sometimes overlooked result in Alice when you use an Alice move,, turn, or roll with negative values…</div><div class=""><br class=""></div><div class="">I am making the assumption that the student would like the dial of the lock to roll either to the left or to the right...</div><div class=""><br class=""></div><div class="">Here is the algorithm for my solution… Others in the community may provide even better ideas…</div><div class=""><br class=""></div><div class="">&nbsp;- create two number variables - in the attached example world they are:&nbsp;</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>-&nbsp;“value” for the result of the random number generation,&nbsp;</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>-&nbsp;“CurrentLocation” to keep track of the current setting of the lock</div><div class="">- set “value" to a random number between -40 and +40</div><div class="">- add “value” to the “CurrentLocation”</div><div class="">- if “CurrentLocation” &lt; 40 <span class="Apple-tab-span" style="white-space:pre">                </span>(The lock dial only displays positive values 0 - 39)</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>- add 40 to the “CurrentLocation”</div><div class="">&nbsp; else if the “CurrentLocation” &gt;= 40</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>- subtract 40 from the “CurrentLocation”</div><div class=""><br class=""></div><div class="">(I am then printing the “value" variable and the “CurrentLocation” variable for debugging purposes)</div><div class=""><br class=""></div><div class="">- roll the comboLock.dial object to the right (0.02 times the “value”)<span class="Apple-tab-span" style="white-space:pre">                </span></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>NOTE:&nbsp;0.02 is 1/40 of a full rotation of the dial</div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span>NOTE: if “value” is negative rolling (or moving or turning) anything a negative distance, will result in a move, turn, or roll in the opposite direction</div><div class=""><span class="Apple-tab-span" style="white-space:pre">                        </span>comboLock.dial roll RIGHT (0.02 times -10) will result in a roll to the left of 0.2.</div><div class=""><br class=""></div><div class="">If the student wishes to create an animation in which the user inputs where the lock dial should turn, the student can take these ideas and modify them appropriately.</div><div class=""><br class=""></div><div class="">Please feel free to et me know if you have any questions, or would like more of an explanation.</div><div class=""><br class=""></div><div class="">Congratulate your student. This is a terrific problem to work on.</div><div class=""><br class=""></div><div class=""></div></body></html>