Skip to content

1.1 [Random Lib]

Choose a tag to compare

@Voblit Voblit released this 22 Jul 14:07
3d7bada

This new release adds the "random" library

first_release(1)
  • Added random module support: Integrated lowering for random.seed(), random.random(), random.randint(), and random.randrange() in codegen.d.
  • Fixed missing expression semicolons: Ensured top-level method calls like random.seed(42) correctly append terminating semicolons to generated main statements.
  • Resolved printf format mismatches: Updated CallNode print handling to dynamically emit %f for float/double variables instead of defaulting to %d.
  • Fixed statement lowering error: Corrected CCodegen.generate main loop iteration to handle pre-compiled C statement strings directly without calling compileNode.

Technically, all the .exe needs is to be within the same folder as the input python file and the CEdev folder, so all you need is this file...