World of Spectrum
  • Categories
  • Discussions
  • FAQ
  • Sign In
Home › Search
Title Search
@title beer Word 'beer' in title
User Search
  • @user admin Only posts by Admin
Text Search
  • @body beer Word 'beer' in the text
Phrase Search
"Hello World" Exact phrase match
Exclude Terms
  • car -red Search cars that are not red
"Or" Searches
  • honda | bmw 'honda' or 'bmw' results
Multi-Field
@(title,body) hello Both contain 'hello'
WildCard
  • hond* civ* Match all with an astrix
Combination
  • @title bmw @user admin
See more supported syntax examples
Search Again :: Adv Search 1000 results in 0.002s
<1…28293031323334>
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... updated code:
    [CODE]
    rnd ld hl,0xA280 ; xz -> ... ; yw -> zt
    ld (rnd+1),de ; x = y, z ... ,a ; w = t
    ld (rnd+4),hl
    ret
    Patrik Rak Patrik Rak December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... /> [CODE]
    10 PLOT RND*128,RND*128
    20 GOTO 10 ...
    Patrik Rak Patrik Rak December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... /> [CODE]
    10 PLOT RND*128,RND*128
    20 GOTO 10 ... />
    LET a=1+INT (RND*10)

    Many thanks ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... ]
    seed equ 23296
    rnd ld bc,(seed) ; xz -> ...
    Patrik Rak Patrik Rak December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... ]
    ED 4B 00 5B rnd ld bc,(seed) ; xz -> ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ...
    ED 4B 00 5B rnd ld bc,(seed) ; xz -> ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... I have found the BASIC RND is not great.

    Paddy Coleman Paddy Coleman December 2011 Development
  • Auto generated spritesLooking around for some graphics I came across [url]http://blog.disktree.net/?p=19[/url] , one of several such pages. Need the odd 8x8 UDG or two (…

    ... you like to alter the RND seed...

    [QUOTE]Isn ...
    kgmcneil kgmcneil December 2011 Development
  • Spectaculator Version 7.51 No GamesHello, I am a fully registered user of Spectaculator and a few months ago I re-imaged my PC. I installed the new version (7.51) and found the games…

    [QUOTE=RND;584379]Maybe because their owners ...
    fog fog December 2011 Emulators
  • Earth twin foundWow, interesting. [url]http://www.bbc.co.uk/news/science-environment-16040655[/url]

    [QUOTE=RND;585069]A planet where the ...
    guesser guesser December 2011 Chit chat
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    Hi Patrik,

    Sorry to bother you again but I have noticed a "funny" issue. Now I fully accept it might be down to me and the way I altered the machine code or a bug in BASin. When I run the attached program for the first time in BASin the ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... ,m:
    PAUSE 1+INT (RND*31):
    NEXT h[/CODE ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    I agree TomD - an excellent routine and very timely as I was struggling to generate decent results with the BASIC RANDOMIZE/RND combo.

    Well done Patrik and thank you.

    Merry Christmas

    Paddy
    Paddy Coleman Paddy Coleman December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    Thanks Philip. Mofied program now looks like:

    [CODE]100 REM Fast
    110 REM
    120 REM Create MCODE
    130 REM
    140 CLEAR 63793
    150 RESTORE 620: LET a=63798
    160 READ v: IF v255-(256-42*INT (256/42)) THEN GO TO 340< ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... , something like INT( ( rnd * 256 + rnd ) * n / 65536 ), where rnd is the USR ...
    Patrik Rak Patrik Rak December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... does):
    [code]
    call rnd ; 0..255 in L
    [code]
    loop call rnd ; 0..255 in A
    Patrik Rak Patrik Rak December 2011 Development
  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…

    ... , something like INT( ( rnd * 256 + rnd ) * n / 65536 ), where rnd is the USR ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • Procrustean PrintingHere's a short routine to manage printing of text with command tokens, to avoid messing up the screen when they are expanded. It just prints as many …

    ... ascending order):
    [code]
    RND, INKEY$, PI - no spaces either ... /> EXLIST: defb $a5,$a6,$a7 ;RND,INKEY$,PI
    defb $c7 ...
    Battle Bunny Battle Bunny December 2011 Sinclair Basic
  • Calculating percentage..or even calculating percentage. Maths and asm I find verryyy tricky. Can anyone suggest the easiest/best way to calculate a percentage from two 1…

    ... LET divisor=INT (RND*1000): LET dividend=INT (RND*500)
    40 ...
    Battle Bunny Battle Bunny December 2011 Development
  • 2012Next year is the 30th anniversary of our old speccy chum. Is there anything planned to mark this great occasion? Maybe we should have a wos party wi…

    [QUOTE=RND;590001]End of the world![/QUOTE]

    Better get yersel' a can o' that Lynx 2012 then ;)
    dm_boozefreek dm_boozefreek December 2011 Chit chat
  • problem with RND (or maybe INT)I'm using this statement: LET m=(INT (RND*sn)+k1)*k2-k1 to give a pointer m to a 2-byte segment of a string l$. Items k1 & k2 are integer constants…

    ... k0:
    LET m=INT (RND*sn+k1)*k2-k1: LET ...
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • problem with RND (or maybe INT)I'm using this statement: LET m=(INT (RND*sn)+k1)*k2-k1 to give a pointer m to a 2-byte segment of a string l$. Items k1 & k2 are integer constants…

    ...
    10 LET m=(INT (RND*sn)+k1)*k2-k1
    NRA NRA January 2012 Sinclair Basic
  • Noob needs helpSorry gents but decided to have a play with basic...see if I could knock up a shonky as hell space invader type game I seem to have gotten myself co…

    [QUOTE=Arjun;593743]A variation on the Chuntey effect perhaps? Who knows... post some code if you need help! ;)[/QUOTE]

    the whatawhosis?

    I decided to scrub the space invaders for now and tweaked it into a rubbish survival type ...
    Wookiee Wookiee January 2012 Sinclair Basic
  • RND CommandsExactly how random are they? Reason I ask is I'm using 4 of them to generate a random number, the value of which then assigns movement commands to f…

    RANDOMIZE takes an INT value, therefore (as RND is always
    Battle Bunny Battle Bunny January 2012 Sinclair Basic
  • RND CommandsExactly how random are they? Reason I ask is I'm using 4 of them to generate a random number, the value of which then assigns movement commands to f…

    ... ?
    [/QUOTE]

    The rnd function doesn't create truly ...
    Oktup Oktup January 2012 Sinclair Basic
  • RND CommandsExactly how random are they? Reason I ask is I'm using 4 of them to generate a random number, the value of which then assigns movement commands to f…

    ... switched to the machine code RND from Patrik is because the ... BASIC RANDOMIZE/RND would not work in the ...
    Paddy Coleman Paddy Coleman January 2012 Sinclair Basic
  • RND CommandsExactly how random are they? Reason I ask is I'm using 4 of them to generate a random number, the value of which then assigns movement commands to f…

    ... of random numbers from RANDOMIZE/RND either. I moved the location ...
    Paddy Coleman Paddy Coleman January 2012 Sinclair Basic
  • RND CommandsExactly how random are they? Reason I ask is I'm using 4 of them to generate a random number, the value of which then assigns movement commands to f…

    ... ...I then went with RND*8 instead of RND*4, the original ... the returned value from an RND*8 thing and it's ...
    Wookiee Wookiee January 2012 Sinclair Basic
  • RND CommandsExactly how random are they? Reason I ask is I'm using 4 of them to generate a random number, the value of which then assigns movement commands to f…

    The expression [QUOTE]INT (RND * 8 )[/QUOTE] will give you ... />
    Try using [QUOTE]INT (RND *8 ) + 1[/QUOTE] That will ...
    Oktup Oktup January 2012 Sinclair Basic
  • Annoying colour issues with UDGsMe again... Flush with the success of finding the latest version of BASin to play with I tried to buff the graphics of the various screen items All…

    ... 63: POKE 22528+n,56*RND: NEXT n
    20 PRINT ...
    mcleod_ideafix mcleod_ideafix January 2012 Sinclair Basic
<1…28293031323334>

Latest Posts

  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on 12:41AM
  • i am currently listening to........
    dmsmith on April 15
  • I am currently watching.....
    zx1 on April 15
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 15
  • Cooperative Games.
    harriusherbartio on April 15
  • Celebrity deaths...
    mel the bell on April 15
  • Minor British Sports that did become games on the ZX Spectrum
    dm_boozefreek on April 15
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 15
  • Inside No.9 favourite episodes
    Maroc's Other Projection on April 15
  • How we became brainwashed by social media
    Scottie_uk on April 15

HitBox

Word Docs Hits
rnd 2.9K 4.1K

Related Threads

  • RND not random?I recently wrote a simple Alien style game where the bad guys shoot you at random, it works fine, but after a while the Variable that is supposed to …
  • Happy birthday RNDThink of a number between 0-100 RND, go on, any number.<br /> <br /> <br /> Huppy Burthus-day.
  • Happy birthday RND!!Merry birthday... Get absolutely sloshed!! (And play lots of [I]Chaos[/I]) :)
  • Happy birthday RND!!Merry birthday... drink lots!! :smile:
  • Happy birthday RND!Merry birthday... drink Chaos! :smile:
  • problem with RND (or maybe INT)I'm using this statement:<br /> <br /> LET m=(INT (RND*sn)+k1)*k2-k1<br /> <br /> to give a pointer m to a 2-byte segment of a string l$. Items k1 &a…
  • RND CommandsExactly how random are they?<br /> <br /> Reason I ask is I'm using 4 of them to generate a random number, the value of which then assigns movement c…
  • RND numberHow do I go about selecting from the numbers 4,9,14 and 19?<br /> <br /> (RND*4)*5-1 ????? :-?
  • Basic BASIC help needed RNDHi all,<br /> <br /> I have recently re-discovered an old program I wrote in the early 90s which would do generate random lottery numbers.<br /> <br …
  • happy birthday RNDhave a good .. if not random one..

Related Searches

  • new rnd
  • rutine rnd
  • rnd rom
  • rnd in rom
  • rnd 65535
  • rnd swarfega
  • rnd asm
  • rnd slow
  • rnd performance
  • rnd peek
  • rnd repetitio s
  • rnd repetition
  • rnd weights
  • rnd percentage
  • rnd chance
  • rnd probabilities
  • ld a r rnd
  • hikoki point rnd
  • hikoki rnd plot
  • 23672 rnd

Copyright © 2024 World of Spectrum