Вариант 2.
Чуть удобней для добавления данных и без Свитчей.
UNDEFINE($books)
UNDEFINE($chapters)
ARRPUSH($books, "Бытие,31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,55,32,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26")
ARRPUSH($books, "Исход,22,25,22,31,23,30,25,32,35,29,10,51,22,31,27,36,16,27,25,26,36,31,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,38")
ARRPUSH($books, "Левит,17,16,17,35,19,30,38,36,24,20,47,8,59,56,33,34,16,30,37,27,24,33,44,23,55,46,34")
$book = RND(1, 3)
STRSEPARATE($books[$book-1], ",", $chapters)
print("Книга: ", $chapters[0])
$chapter = RND(1, ARRSIZE($chapters)-1)
$verse = RND(1, $chapters[$chapter])
print("Глава: ", $chapter, " из (", ARRSIZE($chapters)-1, ")")
print("Стих: ", $verse, " из (", $chapters[$chapter], ")")
print("")
HALT
Просто добавляем книги по аналогии:
ARRPUSH($books, "Левит,17,16,17,35,19,30,38,36,24,20,47,8,59,56,33,34,16,30,37,27,24,33,44,23,55,46,34")
ARRPUSH($books, "НазваниеКниги,СтиховВПервойГлаве,СтиховВоВторойГлаве, ...")