// Script function: Randomly generate numbers from 1 or 20 in each pixel

// Unless named starting with GlobalSino, EM, My, Self, the function commands are defined 
//by Gatan DM, please see at link: http://www.globalsino.com/EM/page2597.html


Image GlobalSinoImage = IntegerImage("GlobalSino Image",4,0,25,25) // Declare a variable 'GlobalSinoImage' as a 4-byte unsigned integer image
GlobalSinoImage = 20*Random() // Copy a random value [0,20) in each pixel
GlobalSinoImage = round (GlobalSinoImage)
ShowImage(GlobalSinoImage)