This was a phone interview. They provided me links to one of the code sharing web site. The interviewer who called was not the recruiter who said he will be calling.
Q: A file contains strings like abcd 3.0 xyx 4.0 foobar 5.0 return random string but probability should be based on weighted average