net.sf.groovydice
Class SimpleRandomNumberGenerator
java.lang.Object
net.sf.groovydice.SimpleRandomNumberGenerator
- All Implemented Interfaces:
- groovy.lang.GroovyObject
public class SimpleRandomNumberGenerator
- extends Object
- implements groovy.lang.GroovyObject
Simple random number generation implementation that rely on the Java's
Random
class do to its job.
- Since:
- 1.3
- Version:
- 1
- Author:
- Daniel F.
Martins
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleRandomNumberGenerator
public SimpleRandomNumberGenerator()
getGenerator
public Random getGenerator()
setGenerator
public void setGenerator(Random value)
getNext
public Object getNext()
setNext
public void setNext(Object value)
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interface groovy.lang.GroovyObject
setMetaClass
public void setMetaClass(groovy.lang.MetaClass metaClass)
- Specified by:
setMetaClass
in interface groovy.lang.GroovyObject
invokeMethod
public Object invokeMethod(String name,
Object args)
- Specified by:
invokeMethod
in interface groovy.lang.GroovyObject
getProperty
public Object getProperty(String name)
- Specified by:
getProperty
in interface groovy.lang.GroovyObject
setProperty
public void setProperty(String name,
Object value)
- Specified by:
setProperty
in interface groovy.lang.GroovyObject
Copyright © 2008-2010 Daniel F. Martins. All Rights Reserved.