randRange(0, 359) 10 * randRange(1, 18)
Measure this angle in degrees.
var ANGLE_TWO = ANGLE_ONE + DIFF; var ANGLE_ONE_R = ANGLE_ONE * PI / 180; var ANGLE_TWO_R = ANGLE_TWO * PI / 180; init({ range: [ [-11, 31], [-10, 10] ], scale: 20 }); path([ [5 * cos( ANGLE_ONE_R ), 5 * sin( ANGLE_ONE_R )], [0, 0], [5 * cos( ANGLE_TWO_R ), 5 * sin( ANGLE_TWO_R )] ]); arc( [0, 0], 1, ANGLE_ONE, ANGLE_TWO ); graph.protractor = new Protractor( [22, 0], 8 ); Khan.scratchpad.disable();

DIFF

graph.protractor.translate( 0, 0, true ); graph.protractor.rotate( 360 - ANGLE_ONE, true ); graph.protractor.rotatable( false ); graph.protractor.translatable( false );

First, align the protractor with the angle.

graph.protractor.drawAngle( DIFF, 2, "green", "green" );

The angle is DIFF degrees.