Please move this to non-advanced stats if I have it in the wrong forum.

I am science degree qualified but not with a maths degree, what maths I have had is a bit rusty and i am looking for some advice on a statistical distribution.

I am looking to simulate a node in a network randomly going 'out of action' from time to time, but with a particular probability.

I am unsure of the best distribution and parameters to use.

For example I may want the node to be 'out of action' say 10% of the time, but I think a straight .1 chance to go off .9 chance to go back on will make the node to be going off for a lot of very short periods very short periods. I think I need another parameter may be and maybe the chance of going off increase around may be some average off time.

Can use the poisson or binomial some where here.

I wonder if I could have parameters frequency period fp (eg 1hr (24 times a day)) and mean percentage down time pdt then do something like

randomPoisonDist down(fp * pdt/100)

randomPoisonDist up(fp * (100-pdt)/100)

when up

next_down_time = now+up.next()

when down

next_up_time = now+down.next()