Add a global variable, Call it score or something appropriate,
Then every tick add 1 to score,
Or on collision add 100 to score,
If you want to add a random number to the score,
on collision with(Object) -
add to score, int(random(100))
or between two numbers, int(random(50,100)) will return a whole number between 50 and 100