Enlarged the wNrot range
Renamed the variable for seed and weight from s to w to distinguish with the set variable s