how to make a randomize in makecode arcade

Am trying to make a random AI like it random it mighty sleep or jump or go slower. is that possible???