summaryrefslogtreecommitdiffstats
blob: 970bb9814bea8c74df8944bcc8b77a45319c8355 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*  Copyright (c) 2016, Isode Limited, London, England.
 *  All rights reserved.
 *
 *  Acquisition and use of this software and related materials for any
 *  purpose requires a written license agreement from Isode Limited,
 *  or a written license from an organisation licensed by Isode Limited
 *  to grant such a license.
 *
 */
package com.isode.stroke.base;

public interface RandomGenerator {

    /**
     * Generates a random integer between 0 and 'max',
     * 'max' inclusive.
     * @param max The maximum possible value 
     * to generate (inclusive)
     * @return A random integer between 0 and 'max' 
     */
    public int generateRandomInteger(int max);
    
}