New Release
Hexaly 13.5 is out!
Check it out
x
Hexaly
×
Products
Hexaly Optimizer
Global Optimization Solver
Hexaly Modeler
Optimization Modeling Language
Hexaly Studio
Low-Code Optimization Studio
Hexaly Cloud
Optimization as a Service
EXPLORE
Benchmarks
Examples
Customers
Pricing
COMPARE
Hexaly vs. Gurobi
Hexaly vs. Cplex
Hexaly vs. OR-Tools
Hexaly vs. OptaPlanner
Try for free
Contact us
Solutions
Route Optimization
Production Scheduling & Blending
Supply Chain Network Design
Workforce Scheduling & Routing
Simulation Optimization
Professional Services
Contact us
Customers
Developers
Get started
Installation & licensing
Quick start guide
Modeling features
Technical features
Guidelines
Example tour
APIs
Hexaly Modeler Reference
Python API Reference
C++ API Reference
C# API Reference
Java API Reference
Download
Doc center
Blog
Latest articles
Hexaly 13.5
Hexaly, Gurobi, OR-Tools on the Team Orienteering Problem (TOP)
Hexaly, Gurobi, OR-Tools on the Bin Packing Problem with Conflicts (BPPC)
2025 INFORMS Analytics+ Conference
ROADEF 2025
Benchmarks
Customer stories
Announcements
Tutorials
Events
All articles
Company
About
Team
Join Us
Login
Contact us
Contact us
Login
Open menu drawer
This page is for an old version of Hexaly Optimizer. We recommend that you update your version and read the documentation for the
latest stable release
.
LocalSolver
Installation & licensing
Installation on Windows
Installation on Linux
Installation on Mac OS X
Quick start guide
Quick tour of LocalSolver’s modeler
Quick tour of LocalSolver’s APIs
Step by step
Advanced features
Callback functions
Piecewise linear functions
The at operator
List variables
LSP Reference Manual
Syntax and lexical analysis
Values and types
Variables
Expressions
Statements
Modules
Command line
Standard library
Python API Reference
LocalSolver Class
LSExpression Class
LSModel Class
LSParam Class
LSPhase Class
LSSolution Class
LSStatistics Class
LSVersion Class
LSError Class
LState Enumeration
LSOperator Enumeration
LSObjectiveDirection Enumeration
LSCallbackType Enumeration
LSErrorCode Enumeration
LSSolutionStatus Enumeration
C++ API Reference
Java API Reference
C# API Reference
LocalSolver
Docs
»
LSP Reference Manual
»
Standard library
»
Random module
Random module
¶
random.
create
(
)
¶
random.
create
(
seed
)
type
random
¶
init
(
)
¶
init
(
seed
)
next
(
max
)
¶
next
(
min
,
max
)
nextNormal
(
)
¶
nextNormal
(
mu
,
sigma
)
nextLogNormal
(
)
¶
nextLogNormal
(
mu
,
sigma
)
nextUniform
(
min
,
max
)
¶