Generating a random number on a DMC motion controller