Random sentence from book: Difference between revisions

m
Line 14:
 
=={{header|Julia}}==
<lang julia>""" weighted random pick of items in a SortedDictDict{String, Int} where keys are words, values counts """
function weightedrandompick(sdict, total)
n = rand(1:total)
4,102

edits