How to create speed at random?

Hello.

I am trying to create a game where the ships coming towards you have a random speed of between 1-10.

Currently i only have this and this makes them all 10, how can i make this random :smiley:


onClipEvent(load)
{
 speedX = 10
}

Thank you