A platform combines multiple tutorials, projects, documentations, questions and answers for developers
  • Home (current)
  • Documentations
  • About
  • Login
  1. Home
  2. Documentations
  3. Haxe Neko
  4. Random

Random

package neko

Available on neko

A seeded pseudo-random generator.

Constructor

new()

Create a new random with random seed.

Methods

float():Float

Return a random float.

int(max:Int):Int

Return a random integer modulo max.

setSeed(s:Int):Void

Set the generator seed.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/neko/Random.html

neko.zip
Compress
neko.vm
Deque
Gc
Gc.run()
Gc.stats()
Loader
Loader.addPath()
Loader.backupCache()
Loader.getCache()
Loader.getPath()
Loader.l
Loader.loadModule()
Loader.loadPrimitive()
Loader.local()
Loader.make()
Loader.setCache()
LoaderHandle
Lock
Module
Module.codeSize()
Module.execute()
Module.exportsTable()
Module.getExports()
Module.getGlobal()
Module.globalsCount()
Module.loader()
Module.local()
Module.m
Module.name
Module.read()
Module.readBytes()
Module.readGlobalsNames()
Module.readPath()
Module.setExport()
Module.setGlobal()
Module.toString()
ModuleHandle
Mutex
Thread
Tls
Ui
Ui.isMainThread()
Ui.loop()
Ui.stopLoop()
Ui.sync()
Ui.syncResult()
Flush
neko
Lib
Lib.bytesReference()
Lib.getClasses()
Lib.haxeToNeko()
Lib.load()
Lib.loadLazy()
Lib.localUnserialize()
Lib.nekoToHaxe()
Lib.print()
Lib.println()
Lib.rethrow()
Lib.serialize()
Lib.stringReference()
Lib.unserialize()
NativeArray
NativeArray.alloc()
NativeArray.blit()
NativeArray.length()
NativeArray.ofArrayCopy()
NativeArray.ofArrayRef()
NativeArray.sub()
NativeArray.toArray()
NativeString
NativeString.alloc()
NativeString.length()
NativeString.ofString()
NativeString.toString()
NativeXml
Random
Random.float()
Random.int()
Random.setSeed()
Uncompress
Utf8
Utf8.addChar()
Utf8.charCodeAt()
Utf8.compare()
Utf8.decode()
Utf8.encode()
Utf8.iter()
Utf8.length()
Utf8.sub()
Utf8.toString()
Utf8.validate()
Web
Web.cacheModule()
Web.flush()
Web.getAuthorization()
Web.getClientHeader()
Web.getClientHeaders()
Web.getClientIP()
Web.getCookies()
Web.getCwd()
Web.getHostName()
Web.getMethod()
Web.getMultipart()
Web.getParamValues()
Web.getParams()
Web.getParamsString()
Web.getPostData()
Web.getURI()
Web.isModNeko
Web.isTora
Web.logMessage()
Web.parseMultipart()
Web.redirect()
Web.setCookie()
Web.setHeader()
Web.setReturnCode()
Xml
Xml.CData
Xml.Comment
Xml.DocType
Xml.Document
Xml.Element
Xml.PCData
Xml.ProcessingInstruction
Xml.addChild()
Xml.attributes()
Xml.createCData()
Xml.createComment()
Xml.createDocType()
Xml.createDocument()
Xml.createElement()
Xml.createPCData()
Xml.createProcessingInstruction()
Xml.elements()
Xml.elementsNamed()
Xml.exists()
Xml.firstChild()
Xml.firstElement()
Xml.get()
Xml.insertChild()
Xml.iterator()
Xml.nodeName
Xml.nodeType
Xml.nodeValue
Xml.parent
Xml.parse()
Xml.remove()
Xml.removeChild()
Xml.set()
Xml.toString()
XmlType
Copyright ©2025 TypeError Powered By AnyPost, page cost 322ms.
Privacy Policy