Actionscript help on creating random pixels

I would like to create a test game which would show a simple sketch image of say a circle, or any other simple geometric shape. The user would then use his cursor to trace over the sketch. How would I tell if the user is tracing it and how could I measure the users accuracy (because invariably you wont trace it exactly correct).

Thanks in advance.