source: src/main/java/weka/clusterers/forMetisMQI/Random.java @ 21

Last change on this file since 21 was 6, checked in by gnappo, 14 years ago

Inizio prototipazione di Metis+MQI.

File size: 425 bytes
Line 
1package weka.clusterers.forMetisMQI;
2
3public class Random extends java.util.Random {
4
5        private static final long serialVersionUID = 1L;
6       
7        private static Random instance = null;
8       
9        /**
10         * Return an instance of a random generator with a default seed.
11         * @return
12         */
13        public static Random instance() {
14                if(instance == null)
15                        instance = new Random();
16                return instance;
17        }
18       
19        private Random() {
20                super(1234567890);
21        }
22
23}
Note: See TracBrowser for help on using the repository browser.