Updated March 11, 2020
The randomizer was created to add some fun and variety into race nights. Want to level the playing field? Nobody practices Indycars on an RX track...in the rain.
Even if you're just looking for a random car, some random classes, anything - the randomizer is designed to make those decisions for you.
Updated for v. 1.7.1 - notes at the bottom. Contact me via email at JasonArizona[at]duck[dawt]com with all feedback. Made in Arizona and free to use. Enjoy!
All calls are made to https://pc2randomizer.azurewebsites.net/api/PC2Randomizer
Default values are bold. Order does not matter.
Determines output from API. No default; required.
xml
- xml outputhtml
- tall html output (cell phone)htmlw
- wide html output (web/stream)track
- returns a single random trackcar
- returns a single random cartt
- returns a single random car and track time trial suggestionInclude images in HTML output. The default may change if it is expensive for me.
true / false
Include DLC cars and tracks.
true / false
Include kart tracks.
true / false
Include rally cross tracks.
true / false
Chance of snow on a track that would allow it. If Fuji is randomly chose, there is a chance of snow being chosen as the season. "Snow" is a season type
different from the snow weather type. If this is set to false
, snow can still fall but the track will not be pre-covered in snow.
true / false
If the above is true, this is the likelihood of snow being chosen if the track supports snow. By default, this is 30 percent. For no snow, set above flag to false.
1...30...100
This sets the maximum number of laps. This number is used to calculate the race time also, guessing an average speed of 90mph. This is wildly inaccurate
so consider it just another alternate recommendation for the race length.
1...50...999
Average speed in MPH used to figure race length. Default is 90. Take a good guess!
1...90...250
dlc
and karts
. Returns XML.
https://pc2randomizer.azurewebsites.net/api/PC2Randomizer?format=car&karts=false&dlc=false
https://pc2randomizer.azurewebsites.net/api/PC2Randomizer?format=track
https://pc2randomizer.azurewebsites.net/api/PC2Randomizer?format=xml
xml false false false false true 10 300 2013 Oreca 03 Nissan LMP2 Standard oreca_03_livery_51-1 4 GTE/LMP2/Road F/WR 20 Spring May 21 10x 150 616.5 992.56 30x 1 Blizzard Email: JasonSandwich[at]outlook[dawt]com
https://pc2randomizer.azurewebsites.net/api/PC2Randomizer?format=xml&images=false&karts=false&rx=false&snow=true&snowpct=10&laps=300&avs=20&dlc=false
https://pc2randomizer.azurewebsites.net/api/PC2Randomizer?format=htmlw
(here)https://pc2randomizer.azurewebsites.net/api/PC2Randomizer?format=html
Project CARS 2 Randomizer
To use the random car
and track
call with a command chat bot, add these custom commands. Accepted arguments for car are dlc
and karts
.
$(urlfetch https://pc2randomizer.azurewebsites.net/api/PC2Randomizer?format=car&karts=false&dlc=false)
@customapi@[https://pc2randomizer.azurewebsites.net/api/PC2Randomizer?format=car]
$readapi(https://pc2randomizer.azurewebsites.net/api/PC2Randomizer?format=track)
{readapi.https://pc2randomizer.azurewebsites.net/api/PC2Randomizer?format=tt}
$(fetch https://pc2randomizer.azurewebsites.net/api/PC2Randomizer?format=$(query))
Latest at top
- 20231102 - removed link to forum
- 20200311 - updated output contact info as well. i forgot api put out my discord name which is now dead.
- 20191209 - changed contact info. getting rid of discord, added outlook email
- 20190524 - added sample code for Stream Labs OBS (SLOBS) and indicated testing for pc2rando.com
- 20190310 - added "tt" as an input, creates a car/track suggestion for time trial and some emoji to the tt, car, and track output for some color
- 20190224 - minor change, track and car output now use square brackets
- 20181022 - fixed a dumb bug, didn't consider LeMans vintage track dlc as dlc and fixed a typo
- 20180916 - added Ferrari DLC
- 20180722 - added km to track output for single use "track", best for chat bots, changed some brackets to ">" because bots make emojis with ")"
- 20180721 - added info for joining Botisimo
- 20180720 - changed "Average Speed" to "Average MPH" on both the cell and desktop landing page
- 20180717 - added "car" and "track" to output, a single element returned and provided custom bot use commands
- 20180628 - primary landing page redirected to mobile site if narrow display is detected
- 20180604 - added le mans legend dlc
- 20180601 - added dlc flag to documentation and updated examples, forgot to include it with initial documentation
- 20180528 - added avs argument to feed average speed, changed assets to transfer via https only