added deterministic library for advanced type of scalar betting