Optimization: principles and algorithms, by Michel Bierlaire
Functions
randomFromAtoB.m File Reference

Compute a random integer between A and B. More...

Go to the source code of this file.

Functions

function randomFromAtoB (in A, in B)
 Compute a random integer between A and B. More...
 

Detailed Description

Compute a random integer between A and B.

Note
Called by twoOptRandomNeighbor
Author
Michel Bierlaire
Date
Sun Apr 19 13:41:06 2015

Definition in file randomFromAtoB.m.

Function Documentation

◆ randomFromAtoB()

function randomFromAtoB ( in  A,
in  B 
)

Compute a random integer between A and B.

Parameters
Alower bound
Bupper bound
Returns
r random number
Copyright 2015-2018 Michel Bierlaire