Hi,
The first thing we have to do is porting ATTIny to Arduino IDE, then I will looking for generate random number on Arduino. for PWM, we can use timer 0 and timer 1, although it has different on resolution, but I can modify it to meet this requirement.
if porting was find difficulties on the way, I will use AVR studio instead.
let's discuss this project over messenger,
Best Regards,
Rijal