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
<1234567…34>
  • Game of Life.Last year (I think) or maybe the year before, I entered a Game of Life simulator into the CSS CGC compo but for the Sinclair ZX81. I decided to port…

    ... ;equivalent to RANDOMIZE 0 for RND routine below
    InitS: ... 2),hl
    ld hl,(23672) ;HL=(FRAMES)
    ld ... 3 / 11
    call RND
    ld bc,17873

    RND7: call RND
    ld a,h
    Battle Bunny Battle Bunny October 2014 Sinclair Basic
  • RANDOMIZE - still not sure what it does...Whenever I wish a random number I use RND like: 10 LET a=RND*100 20 PRINT a 30 GO TO 0 and "a" will truly be random. But if is do the following: …

    ... x=1 to 10: PRINT RND*1000: NEXT x[/CODE]

    [CODE]10 POKE 23672,0: POKE 23672,0: POKE 23673,0 ... /> 40 RANDOMIZE
    50 PRINT RND*1000[/CODE]

    You ...
    Zup Zup January 2015 Sinclair Basic
  • RANDOMIZE - still not sure what it does...Whenever I wish a random number I use RND like: 10 LET a=RND*100 20 PRINT a 30 GO TO 0 and "a" will truly be random. But if is do the following: …

    ... TO 64060
    220 REM 23672=Least significant byte of FRAMES ...
    230 LET v=PEEK 23672
    240 REM SEED values ...
    280 PAUSE 1+INT (RND*31)
    290 NEXT a ... 250 ED 4B 39 FA rnd ld bc,(seed) ; xz -> ...
    Paddy Coleman Paddy Coleman January 2015 Sinclair Basic
  • Flicker free animation in BASIC, is it possible ?With all my various noodlings in BASIC and indeed with my so far limited assembly​ I keep coming up with the same issue. How do you do animations wit…

    ... ,0: POKE 23673,0: POKE 23672,0: POKE 65281,0: FOR ...
    2 LET f1=PEEK 23672: LET f2=PEEK 23673: LET ... f3=PEEK 23672: LET f4=PEEK 23673: LET ...
    Dunny Dunny June 2017 BASIC
  • Random Smiley FacesAs promised, here's the Syntax: ;Startup 5 CLS 7 PAPER 0: BORDER 0 ;Graphics 10 FOR n=0 to 7 20 READ row: POKE USR "P"+n,row 30 NEXT n 31 DATA BI…

    ... /> 40 LET INKY = 1+INT ( RND* 7)
    50 LET X ... = 1+INT ( RND* 30)
    60 LET Y ... = 1+INT ( RND* 20)

    ; Printout!
    Takashi64 Takashi64 January 2003 Sinclair Miscellaneous
  • 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 …

    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 be random gets stuck on a number. I've tried RANDOMISE but it didn't work - unless I used it incorrectly. ...
    Pirate Pirate June 2003 Sinclair Basic
  • TimingHey All, Is their away of obtaining timing information on ZX128k other than addresses 23672->23674. Basically I would like to identify every 100th …

    ... on ZX128k other than addresses 23672->23674. Basically I would ... to the 50 present in 23672.

    Also, can anyone ...
    GBNvK GBNvK January 2004 Development
  • VSYNC FunctionI have written a VSYNC function, so that I can clear the screen before redraw without flicker on the screen, I do this by peeking at the address 2367…

    ... by peeking at the address 23672.

    Is this the ... />
    VSYNCLP:
    LD A,(23672)
    CP L
    JR ...
    robpearmain robpearmain May 2004 Development
  • Zaf-forth to Z80 compiler Build 5This forth like complier is changing almost every day with new items been added. Here is a new Zaf-forth word add it the sptword.fth file - which is…

    ... -next loop, label, jump"
    ;"rnd, swap, zxcircle,"




    50 rnd
    ;" get a random number ... mul 255 swap sub
    rnd ?rrandom add =xrandom
    ;"calc ... mul 175 swap sub
    rnd ?rrandom add =yrandom
    ;" ...
    Steve(spt) Steve(spt) October 2004 Development
  • How do I get a random numberHi, I need a simple routine to get a random number from 1 to 4. I don't need nothing very complex or that much random, it just have to produce diffe…

    ... />
    I looked into S-RND (in ROM at addr #25F8 ...
    AE.Vasconcelos AE.Vasconcelos May 2005 Development
  • ZX-81 Ram Pack problemHi! I know this is a ZX Spectrum forum, but I am hoping someone here might be able to help me out... I have posted this to c.s.s. but noone was able…

    ...
    20 LET A = INT(RND*255)
    30 POKE N ...
    Tom-Cat Tom-Cat September 2005 Sinclair Miscellaneous
  • Amazing Short Type-InsHey all ! Been having some pretty stressfull days lately so I tought I would type in some games. There was a very nice type-in book here in Slovenia…

    Hey all !

    Been having some pretty stressfull days lately so I tought I would type in some games. There was a very nice type-in book here in Slovenia called "Mirko Tipka na Radirko" which is roughly translated as "Mirko types on rubber" ( ...
    Tom-Cat Tom-Cat March 2006 Games
  • Pseudo random numbersHi everybody, I 'd like to convert a little program i wrote in VisualBasic6.0 to C or C++ to make it run faster and for training as i'm a very very n…

    ... 5
    Print Int(1 + Rnd * 10);
    Next n
    andregiax andregiax April 2006 Sinclair Miscellaneous
  • ONELINER : Finger TwisterFINGER TWISTER Do you all know TWISTER, that crazy game where you had to place your left foot on yellow, your right hand on green etc. etc. Well, n…

    ... =1 TO l: LET y=RND*(6-z)+.5:
    LET ... $(6
    -z): LET y=RND*3+.5: LET b$(y ...
    Dr BEEP Dr BEEP May 2007 Games
  • The Non Randomness of Sam BasicHows about this for weird. Hardly ever bothered with such simple stuff before but this is what I just did on the Sam ( as in a real one now I've got …

    ... ):

    10 LET x=RND* 255
    20 LET y ...
    30 LET p=RND* 16
    40 PEN p< ...
    DonkeyPong DonkeyPong June 2007 Sinclair Basic
  • SPIN's breakpoints - an overviewAs quite a few people have been asking how to set breakpoints on memory write etc. in SPIN, here's a description of the way the breakpoints work. Get…

    ... so:
    [code]
    UNTIL [23672] = 3
    [/code]
    That ... break when the byte at 23672 = 3. Square brackets are used ...
    Marko Marko November 2007 Development
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... 20:\
    LET o=INT (RND*3-1):\
    INK 7 ...
    bigjon bigjon January 2008 Development
  • Internal functions on ZX80 keyboardHi guys, I'm trying to do some bits and pieces for the ZX80. I was wondering how you access the functions that aren't on the keyboard (RND etc.). Th…

    Hi guys,

    I'm trying to do some bits and pieces for the ZX80. I was wondering how you access the functions that aren't on the keyboard (RND etc.). They're described as 'integral functions'. Does anyone know I can get to them?
    SnakeOilSteve SnakeOilSteve February 2008 Sinclair Basic
  • problem using FRAMES to generate 'random' numbersI realise the pros use bytes from ROM to get their random numbers, presumably because they want to use FRAMES to synchronise the printing and avoid s…

    ... ]
    randommove
    ld a,(23672) ;lsb of FRAMES
    and ...
    bigjon bigjon March 2008 Development
  • Disappearing/appearing effectI remember doing a small routine in BASIC which could be used to cover the attributes section randomly, until all 704 characters were filled with the…

    ... version of my routine used RND and ATTR to paint randomly ...
    zxbruno zxbruno March 2008 Sinclair Basic
  • BASIC Keyword ReferenceRealised that the Sinclair Basic section would be a better place for discussion of BASIC keywords, so for reference the old thread is in [thread=2005…

    ... : Y
    EXP : E : X RND : E : T
    FLASH : E ...
    icabod icabod March 2008 Sinclair Basic
  • Spin problems/issuesI am running Spin 0.666 and have noticed a few issues (some are bugs, some might be just me). I am using Vista sp1 (yeah I know!), and I've seen Dunn…

    ... ,0
    20 OUT 251,RND*255
    30 GOTO 20 ...
    Jimmy Jimmy April 2008 Emulators
  • Porting 8k Adventure to SpectrumSomeone has tried to help me port 8k Adventure over to the spectrum. Here is the code thus far. It doesn't seem to work with the verbs, however. I tr…

    Someone has tried to help me port 8k Adventure over to the spectrum. Here is the code thus far. It doesn't seem to work with the verbs, however. I tried getting an object, but it said "Verb not recognized. Type help for clues".

    Here is the ...
    Paul Panks Paul Panks May 2008 Sinclair Basic
  • Happy birthday RND!!Merry birthday... Get absolutely sloshed!! (And play lots of [I]Chaos[/I]) :)

    Merry birthday... Get absolutely sloshed!! (And play lots of [I]Chaos[/I]) :)
    GreenCard GreenCard June 2008 Chit chat
  • Just wrote my first useful working Speccy BASIC program in years...A nice UK National Lottery number generator. And not just any lotto number generator either. This one generates 8 lines of 6 numbers without replace…

    A nice UK National Lottery number generator.

    And not just any lotto number generator either. This one generates 8 lines of 6 numbers without replacement (i.e. using 48 of the 49 numbers from 1 to 49) without repeating any number twice.
    < ...
    BigBadMick BigBadMick November 2008 Development
  • BASIC: Fast way of filling a string?Recently I decided to use string slicing to extract random numbers from a sequence in the one-liner Lottery picker: [quote] 20 RANDOMIZE : LET a$=""…

    ... 6: LET b=1+INT (RND*LEN a$): PRINT AT g ...
    Dunny Dunny November 2008 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…

    ... register:

    [CODE]
    rnd ld hl,0xA280
    ld ...
    Patrik Rak Patrik Rak December 2008 Development
  • Couple of questions...Howdy, 1. Is there a decent way to get a random number in BASIC/MC? I've been using LET a=INT(RND*2)+1 but the numbers tend to stay at 1 or 2 most …

    ... been using LET a=INT(RND*2)+1 but the numbers ...
    polomint polomint March 2009 Development
  • Writing internet servers in ZX BASICNew Spectranet news! I have just finished adding the code to allow listening sockets to be used from BASIC. A simple example: [code] 10 %listen #4,…

    ... ,4
    30 PRINT #5;RND
    40 GO TO 30 ... m
    50 PRINT #i;RND
    60 NEXT i
    Winston Winston August 2009 Hardware
<1234567…34>

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
23672 204 359
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

  • 23672
  • rnd
  • new rnd
  • rutine rnd
  • rnd rom
  • rnd in rom
  • rnd 65535
  • rnd swarfega
  • rnd asm
  • rnd slow
  • rnd performance
  • rnd peek
  • peek 23672
  • rnd repetitio s
  • rnd repetition
  • rnd weights
  • rnd percentage
  • rnd chance
  • rnd probabilities
  • rnd based on peek 23672

Copyright © 2024 World of Spectrum