Skip to main content
added 16393 characters in body
Source Link
sergiol
  • 4.2k
  • 1
  • 17
  • 37

Tcl, 137129 bytes

Not a winner for sure, but I think it can be a golfed a little more.

time {set p "";time {set p [string totitletot [lindex $d [expr int(rand()*[llength $d])]]]$p} 4;puts $p\ [expr 5.7004*[string lengthle $p]]} 5

Try it online!Try it online!

Tcl, 137 bytes

Not a winner for sure, but I think it can be a golfed a little more.

time {set p "";time {set p [string totitle [lindex $d [expr int(rand()*[llength $d])]]]$p} 4;puts $p\ [expr 5.7004*[string length $p]]} 5

Try it online!

Tcl, 129 bytes

Not a winner for sure, but I think it can be a golfed a little more.

time {set p "";time {set p [string tot [lindex $d [expr int(rand()*[llength $d])]]]$p} 4;puts $p\ [expr 5.7004*[string le $p]]} 5

Try it online!

added 16315 characters in body
Source Link
sergiol
  • 4.2k
  • 1
  • 17
  • 37

tclTcl, 137 bytes

Not a winner for sure, but I think it can be a golfed a little more.

time {set p "";time {set p [string totitle [lindex $d [expr int(rand()*[llength $d])]]]$p} 4;puts $p\ [expr 5.7004*[string length $p]]} 5

demo — The line 1 purpose is only to put the dictionary contents into the variable dTry it online!

tcl, 137

Not a winner for sure, but I think it can be a golfed a little more.

time {set p "";time {set p [string totitle [lindex $d [expr int(rand()*[llength $d])]]]$p} 4;puts $p\ [expr 5.7004*[string length $p]]} 5

demo — The line 1 purpose is only to put the dictionary contents into the variable d

Tcl, 137 bytes

Not a winner for sure, but I think it can be a golfed a little more.

time {set p "";time {set p [string totitle [lindex $d [expr int(rand()*[llength $d])]]]$p} 4;puts $p\ [expr 5.7004*[string length $p]]} 5

Try it online!

Commonmark migration
Source Link

#tcl, 137

tcl, 137

Not a winner for sure, but I think it can be a golfed a little more.

time {set p "";time {set p [string totitle [lindex $d [expr int(rand()*[llength $d])]]]$p} 4;puts $p\ [expr 5.7004*[string length $p]]} 5

demo — The line 1 purpose is only to put the dictionary contents into the variable d

#tcl, 137

Not a winner for sure, but I think it can be a golfed a little more.

time {set p "";time {set p [string totitle [lindex $d [expr int(rand()*[llength $d])]]]$p} 4;puts $p\ [expr 5.7004*[string length $p]]} 5

demo — The line 1 purpose is only to put the dictionary contents into the variable d

tcl, 137

Not a winner for sure, but I think it can be a golfed a little more.

time {set p "";time {set p [string totitle [lindex $d [expr int(rand()*[llength $d])]]]$p} 4;puts $p\ [expr 5.7004*[string length $p]]} 5

demo — The line 1 purpose is only to put the dictionary contents into the variable d

deleted 8 characters in body
Source Link
sergiol
  • 4.2k
  • 1
  • 17
  • 37
Loading
deleted 13 characters in body
Source Link
sergiol
  • 4.2k
  • 1
  • 17
  • 37
Loading
deleted 10 characters in body
Source Link
sergiol
  • 4.2k
  • 1
  • 17
  • 37
Loading
deleted 2 characters in body
Source Link
sergiol
  • 4.2k
  • 1
  • 17
  • 37
Loading
Source Link
sergiol
  • 4.2k
  • 1
  • 17
  • 37
Loading