system.pseudoRandom255

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Cmd. Cheyd
---- E L I T E ----
---- E L I T E ----
Posts: 934
Joined: Tue Dec 16, 2008 2:52 pm
Location: Deep Horizon Industries Manufacturing & Research Site somewhere in G8...

system.pseudoRandom255

Post by Cmd. Cheyd »

Taken from with Wiki (Oolite JavaScript Reference: System)
pseudoRandom255

pseudoRandom255 : Number (integer, read)

A random number between 0 and 254 that is always the same for a given system.
From my Latest.Log:

Code: Select all

[script.javaScript.warning.162]: ----- JavaScript warning ("MyOXP" 1.0.0): reference to undefined property system.pseudoRandom255

Code: Select all

var seed = system.pseudoRandom255 + system.pseudoRandom100
Am I using it incorrectly or...???
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Post by Frame »

wiki entry must be wrong its

Code: Select all

system.pseudoRandom256
not

Code: Select all

system.pseudoRandom255
Bounty Scanner
Number 935
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Post by Frame »

Wiki entry was wrong,

Corrected...
Bounty Scanner
Number 935
User avatar
Cmd. Cheyd
---- E L I T E ----
---- E L I T E ----
Posts: 934
Joined: Tue Dec 16, 2008 2:52 pm
Location: Deep Horizon Industries Manufacturing & Research Site somewhere in G8...

Post by Cmd. Cheyd »

Thanks! That error is gone from my OXP... Just 9,999 to go!!! :P
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

..

Post by Lestradae »

Cmd. Cheyd wrote:
Thanks! That error is gone... Just 9,999 to go!!! :P
What are you actually working at?

Curious 8)

L
User avatar
Cmd. Cheyd
---- E L I T E ----
---- E L I T E ----
Posts: 934
Joined: Tue Dec 16, 2008 2:52 pm
Location: Deep Horizon Industries Manufacturing & Research Site somewhere in G8...

Post by Cmd. Cheyd »

I'll make a post about it soon... But System Redux 2.0.
Post Reply