Try to implement precomputed random values
Fix conflicts