AI
Animation
CGI
Compression
Console
Database
Debug
Dialects
Dialogs
Editor
Email
Encryption
Extension
External Library
File
File Handling
Files
Financial
FTP
Game
Games
Graphics
GUI
HTML
HTTP
Internet
LDC
Markup
Math
Module
Network
Networking
None
Other - Net
Parse
Patch
Printing
Protocol
Rebol
Scheme
Scientific
SDK
Security
Shell
Sound
SQL
TCP
Testing
Text
Text Processing
UI
User Interface
Util
Utility
VID
Visualization
Web
Win API
X-File
XML
REBOL[
    File: %random-org.r
    Date: 17-6-2008
    Title: "Random.org"
    Purpose: "Get really random numbers (come from atmospheric noise) from http://random.org"
    Library: [
        level: 'beginner
        platform: 'all
        type: [function tutorial tool]
        domain: [http parse scientific shell]
        tested-under: [View 1.3.2.3.1 on XP]
        support: none
        license: 'pd
        see-also: none
    ]
]

random-org: func [
	"Get block of random numbers from http://random.org"
	/size 	"Size of block (default = 100)"
		siz
	/interval	"Number interval (default = 1 - 100)"
		min max
	/base	"Numerical base - 2, 8, 10, 16 (default = 10)"
		base-num
][
	if not size [siz: 100]
	if not interval [min: 1 max: 100]
	if not base [base-num: 10]
	load read rejoin [http://random.org/integers/?num= siz "&min=" min "&max=" max "&col=1&base=" base-num "&format=plain&rnd=new"]
]

            
            
        
Copyright © 2018 Rebol Software Foundation