# How to use the random generator # The random generator creates almost-random simulation configurations based on parameters passed to it. Currently it supports the following parameters: |**Option**|Description| |:---------|:----------| |-N | --num-nodes <n> | number of nodes to generate (integer)| |-C | --num-cars <c> | number of cars to generate (integer)| |-D | --node-degree <d> | avg. out degree of nodes (actual values well be chosen from a uniform distribution, but will be centered around this mean (integer)| |-o | --output-file <file> | name of the file to write the config to (string)| |-d | --node-delay <min:max> | range of node delays from which to draw uniformly (integer:integer)| |-S | --car-strategies <list> | a comma-separated list of fully qualified class names for route-finding strategies. A strategy will be chosen randomly for each car. [List of strategies](Strategies.md) distributed with Adasim. | | --one-way-prob <d> | Probability for a street to be one way. **Optional**, defaults to 0.01 | | --node-capacity <n> | The default node capacity to be used for all nodes. **Optional**, defaults to 0 | | --graph <file> | Specifies an XML file that contains only the `graph` portion of the configuration. No new graph will be generated when this argument is passed. **Optional**, overrides all other arguments that configure graph generation. | To run the simulator, call: ``` java adasim.generator.Generator ```