package com.divya.keyspeed.data

import android.content.Context
import com.divya.keyspeed.R
import kotlin.random.Random

class PassageRepository(private val context: Context) {
    
    fun getRandomPassage(): String {
        val passages = context.resources.getStringArray(R.array.typing_passages)
        if (passages.isNotEmpty()) {
            return passages[Random.nextInt(passages.size)]
        }
        return "The quick brown fox jumps over the lazy dog." // Fallback
    }
}
