Random Allocator

Allocates randomly to inputs where the sum is equal to 100%

(no tags)

    Algorithmia Platform License

    Run an Example

    {
      "KR": 0.3168724279835391,
      "JNJ": 0.14814814814814814,
      "AAPL": 0.008230452674897122,
      "XOM": 0.308641975308642,
      "CVS": 0.21810699588477372
    }

    Install & Use

    Use
    
    curl -X POST -d '["XOM","AAPL","CVS","JNJ","KR"]' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/chrisrobbins157/RandomAllocator/0.1.0