2 ms·
Also available in python: http://www.google.com/codesearch?hl=en&lr=&q=int\%28random\.random\%28\%29\%29&sbtn=Search http://www.google.com/codesearch?hl=en&lr=&
by wisty 17y ago
Also available in python: http://www.google.com/codesearch?hl=en&lr=&q=int\%28random\.random\%28\%29\%29&sbtn=Search http://www.google.com/codesearch?hl=en&lr=&q=int\%28...
Only 7 matches though. 1 false positive (print(random.random()) in python itself, and no real bugs in projects that I recognize.
- judofyr 17y agoOnly 3 matches in Ruby: http://www.google.com/codesearch?hl=en&lr=&q=\brand(\(\))%3F.to_i+lang:ruby&sbtn=Search http://www.google.com/codesearch?hl=en&lr=&q=\brand(...
- ErrantX 17y agoheh. This one is my favourite: r = str(int(random.random())) [http://www.google.com/codesearch/p?hl=en&sa=N&cd=4&ct=rc#n2Yb9KVAEYM/trunk/python/kaixin/tags/a2/ranch.py&q=int%5C(random%5C.random%5C(%5C)%5C)&l=165 http://www.google.com/codesearch/p?hl=en&sa=N&cd=4&#...]
- paulbaumgart 17y agoA minor tweak to your search to fix the false positives: http://www.google.com/codesearch?q=[^\w]int\%28random\.random\%28\%29\%29 http://www.google.com/codesearch?q=[^\w]int\%28random\.rando...