random lib example