use uniform instead of random