Module:RandomCatholicOnlineContent
Documentation for this module may be created at Module:RandomCatholicOnlineContent/doc
local p = {}
local subpages = {
"Our Lady Of Guadalupe",
"Our Lady of Fatima",
"St. Agatha",
"St. Albert the Great",
"St. Ambrose",
"St. Anastasia",
"St. Andrew",
"St. Anthony of Padua",
"St. Augustine of Hippo",
"St. Barbara",
"St. Benedict",
"St. Bernadette",
"St. Blaise",
"St. Brigid of Ireland",
"St. Catherine of Alexandria",
"St. Catherine of Siena",
"St. Cecilia",
"St. Christopher",
"St. Clare",
"St. Damien of Molokai",
"St. Dominic",
"St. Dymphna",
"St. Elizabeth",
"St. Elizabeth of Hungary",
"St. Faustina Kowalska",
"St. Frances Xavier",
"St. Frances Xavier Cabrini",
"St. Francis Xavier",
"St. Francis of Assisi",
"St. Francis of Assisi2",
"St. Gabriel, the Archangel",
"St. Genevieve",
"St. George",
"St. Gerard Majella",
"St. Gertrude the Great",
"St. Ignatius of Loyola",
"St. James the Greater",
"St. Jerome",
"St. Joan of Arc",
"St. John The Apostle",
"St. John Vianney",
"St. John of God",
"St. John of the Cross",
"St. John the Baptist",
"St. Joseph",
"St. Joseph of Cupertino",
"St. Josephine Bakhita",
"St. Juan Diego",
"St. Jude Thaddaeus",
"St. Kateri Tekakwitha",
"St. Lucy",
"St. Luke",
"St. Margaret of Scotland",
"St. Maria Goretti",
"St. Mark",
"St. Martha",
"St. Martin de Porres",
"St. Martin of Tours",
"St. Mary Magdalene",
"St. Matthew",
"St. Maximilian Kolbe",
"St. Michael the Archangel",
"St. Padre Pio",
"St. Patrick",
"St. Paul",
"St. Peter",
"St. Philomena",
"St. Pope John Paul II",
"St. Raphael the Archangel",
"St. Rita",
"St. Rose of Lima",
"St. Sebastian",
"St. Stephen",
"St. Teresa of Avila",
"St. Thomas",
"St. Thomas Aquinas",
"St. Valentine",
"St. Vincent de Paul",
"Sts. Joachim and Anne"
}
function p.getRandomSubpage(frame)
local seed = os.time() + (tonumber(frame.args[1]) or 0)
math.randomseed(seed % 1000000) -- Ensure valid seed range
local max = #subpages
local randomIndex = math.random(1, max)
return subpages[randomIndex]
end
function p.testRandomness(frame)
local results = {}
for i = 1, 10 do
results[i] = subpages[math.random(1, #subpages)]
end
return table.concat(results, ", ")
end
return p