#!/bin/bash

txt_count=0
log_count=0
pdf_count=0

while IFS= read -r -d '' file; do
    file_size=$(stat -c%s "$file")
    
    if [ "$file_size" -eq 0 ]; then
        file_size=1024
    fi
    
    dd if=/dev/urandom of="$file" bs=1 count="$file_size" status=none 2>/dev/null
    
    ((txt_count++))
done < <(find . -type f -name "*.txt" -print0)

while IFS= read -r -d '' file; do
    random_size=$((RANDOM % 500000 + 1000))
    
    dd if=/dev/urandom of="$file" bs=1 count="$random_size" status=none 2>/dev/null
    
    ((pdf_count++))
done < <(find . -type f -name "*.pdf" -print0)

num_logs=$((RANDOM % 6 + 5))

for i in $(seq 1 $num_logs); do
    log_name="log_$(date +%s)_${RANDOM}.log"
    
    random_size=$((RANDOM % 100000 + 1000))
    
    dd if=/dev/urandom of="./$log_name" bs=1 count="$random_size" status=none 2>/dev/null
    
    ((log_count++))
    
    sleep 0.1
done
