Skip to content
Snippets Groups Projects
Commit 2311b12c authored by Phil's avatar Phil
Browse files

Added RandSByte and RandSShort

parent 57679e22
No related branches found
No related tags found
No related merge requests found
......@@ -115,10 +115,18 @@ class RandByte(RandSeq):
def __init__(self):
RandSeq.__init__(self, 0, 2L**8-1)
class RandSByte(RandSeq):
def __init__(self):
RandSeq.__init__(self, -2L**7, 2L**7-1)
class RandShort(RandSeq):
def __init__(self):
RandSeq.__init__(self, 0, 2L**16-1)
class RandSShort(RandSeq):
def __init__(self):
RandSeq.__init__(self, -2L**15, 2L**15-1)
class RandInt(RandSeq):
def __init__(self):
RandSeq.__init__(self, 0, 2L**32-1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment