random grasp generator now works also with a discrete TWS