Scratchpad r75 (See the current copy)
My [Scratchpad] Information about interesting [Current Projects] Random [Scripts] Random [Demonstrations] Information about [Threads] Random [Diatribes] My [Friends] ---- Feel free to contact me about this website at mailto:wiki@rkeene.org Information about [Random Number Generation] Random [Links] Information about [Tcl] Information about [Roy Keene] '''What you will find here''' ** [Test Script 1] **
set ret [list] foreach line [split [getpage 0] \n] {
set ret [linsert $ret [expr int(rand() * [llength $ret])] $line]
}
puts ""
while 1 {
set pageId [expr int(rand() * [countpages])]
set pageText [getpage $pageId]
if {$pageText == ""} {
continue
}
puts "** \[[gettitle $pageId]\] **"
puts $pageText
break}
return