Simplified API and added pico_rand compatibility wrapper.