New-Story
Generates a new story
function RandomAdverb {
return "angry","clever","colorful","cool","funny","glad","happy","holy","hot","late","lazy","loud","lovely","nice","poor","rich","romantic","selfish","shy","silent","slow","smart","violent" | Get-Random
}
function RandomSubject {
return "airport","Amy","baby","Ben","Bob","brothers","car","cat","Dick","dog","earth","Eva","fox","guy","jet","Joe","Jon","kids","Leo","Max","man","moon","movies","parents","people","Peter","plane","Pope","Ron","Sam","sisters","sun","Tim","Tom","woman" | Get-Random
}
function RandomVerb {
return "beats","broadcasts","catches","enters","goes to","hits","leaves","listens to","loves","talks to","walks to","welcomes" | Get-Random
}
function RandomObject {
return "a ball","a house","a sheep","a table","a vase","god","the church","the road","the tea","the woods","Lisa","Mary" | Get-Random
}
function RandomSentence {
return "The $(RandomAdverb) $(RandomSubject) $(RandomVerb) $(RandomObject)."
}
""
" A Funny Story"
" -------------"
""
" Generated by a script with rules & randomness only."
""
while ($true) { & "$PSScriptRoot/write-typewriter.ps1" $(RandomSentence) 20 }
exit 0 # successThis script has no configurable parameters.