This dice script returns one node from among all the colored nodes (all but the head node). A number is selected from 1 to 340. If it is among the first four numbers it is first level. The first 20 – second level. The first 84 – third level. Above that is fourth level.