The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
# blog post: http://blog.slashpoundbang.com/post/3385815540/how-to-generate-an-opml-file-with-ruby | |
require 'open-uri' | |
require 'builder' | |
require 'truffle-hog' | |
require 'nokogiri' | |
# CHANGE ME | |
urls = %w(http://example.com/ http://example.org/) |
public class roulette { | |
public static void main(String [] args) { | |
int n=4; | |
double [] weight = new double [n]; | |
weight[0]=0.4; | |
weight[1]=0.3; | |
weight[2]=1.2; | |
weight[3]=0.1; | |
double max_weight=1.2; | |
int [] counter = new int[n]; |