+stair function and random incrementor function

final debug