Hi I am looking at this: CocosLearning Scheduling and I am interested in scheduling a function call forever with a time gap between calls. But I do not want a fixed time gap, I am trying to figure out how I can call it at random times.

So I am using `Math.floor((Math.random() * 3) + 1)`

to generate a random number between 1-3 seconds and I would like to use that to schedule the call.

Logic behind this:

- set time using Match.random()
- countdown the time (in seconds) till 0 then call function
- set time again (new random time) and countdown to call function again
- repeat forever

Is there a way to do that?

Example:

```
this.schedule( this.UpdateFunction, 1.0 );
UpdateFunction: function( dt ) {
// code to run
},
```

But I don’t want the 1.0 to be a fixed number.