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>
  • Happy birthday RNDThink of a number between 0-100 RND, go on, any number. Huppy Burthus-day.

    Think of a number between 0-100 RND, go on, any number.


    Huppy Burthus-day.
    Graz Graz June 2007 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…

    ... :

    LET m=(INT (RND*sn)+k1)*k2-k1
    RND*sn)+k1)*k2-k1: PRINT ...
    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…

    ... seem to recall a RANDOMIZE RND command which I've entered ...
    930 LET k=INT (RND*8)
    940 LET l ... =INT (RND*8)
    950 LET m ... =INT (RND*8)
    960 LET n ...
    Wookiee Wookiee January 2012 Sinclair Basic
  • RND numberHow do I go about selecting from the numbers 4,9,14 and 19? (RND*4)*5-1 ????? :-?

    How do I go about selecting from the numbers 4,9,14 and 19?

    (RND*4)*5-1 ????? :-?
    daveysludge daveysludge March 2012 Sinclair Basic
  • Basic BASIC help needed RNDHi all, I have recently re-discovered an old program I wrote in the early 90s which would do generate random lottery numbers. I know little now, an…

    ... />
    Let b= 1+ INT (RND*49): PRINT b

    landorb landorb March 2012 Sinclair Basic
  • Help needed... RND in machine codeI have been battling away trying to convert a simple BASIC routine (below) to machine code, but to no avail. The routine is used to fire 2 bullets a…

    ... flummoxed, mainly due to the RND equation!

    Any ideas ...
    daveysludge daveysludge July 2012 Development
  • problems with rndGot past the whole INKEY$ issue and now am trying to pin down the combat section of the game. got a basic combat routine however, when i try and gen…

    ... LET PH=INT (RND*6)+(INT (RND*6))+(INT (RND*6)): LET PD ... =INT (RND*6): LET MH=INT (RND ... *18): LET MD=INT (RND*6)
    50 ...
    WibbleBibble WibbleBibble August 2012 Sinclair Basic
  • RND cyclical behaviourGood evening. I'm playing with RND function to show its cyclical behaviour, i.e. after 65536 calls to it, the next one will return the same value of …

    ... .
    I'm playing with RND function to show its cyclical ...
    15 LET r=INT (RND*n)
    20 LET y ...
    mattsteel mattsteel August 2013 Sinclair Basic
  • Non-repetitive RNDHi guys) Perhaps, some of you already encountered a situation, when one needed a set of [b]unique [/b](pseudo-)random values, say, from zero to 25…

    ... (i)
    LET r=INT(RND)*255
    LET A(i ...
    NRA NRA November 2018 Sinclair Basic
  • random number generator without using rnd in basicwhat is the simplest way to generate random numbers in basic (0-255), without using the rnd statement? i also want it to always generate the same…

    what is the simplest way to generate random numbers in basic (0-255), without using the rnd statement?

    i also want it to always generate the same numbers over and over again.
    digital digital June 2019 Development
  • 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
  • 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
  • New Functions for Sinclair BasicA total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structu…

    A total of 52 new functions can be added to Sinclair BASIC; 26 numeric functions (A-Z) and 26 string functions (A$-Z$). Owing to the internal structure of Sinclair BASIC, the best place to store these functions is in line 0. This prevents the line being ...
    chev chev November 2004 Sinclair Basic
  • 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
  • Programming MC : first stepsIsn't nice to collect all kinds of short routines to help making the first steps into MC for everyone who never touched MC? What I mean is mostly th…

    ... call random ; fetch RND number
    add a ... ld hl,(seed) ; fetch RND pointer
    inc hl ... seed),hl ; store next RND-pointer
    ld a ... ret ; A holds RND value
    seed ...
    Dr BEEP Dr BEEP August 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
  • Dodgy radio advertApologies if it's been mentioned elsewhere (I couldn't be arsed to look) but has anyone else heard the new radio advert featuring a Spectrum loading …

    ... that is a handful of swarfega before having a good toss ...
    chaosmongers chaosmongers November 2005 Chit chat
  • 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
  • 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
  • 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
<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
rnd 2.9K 4.1K
swarfega 36 42

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

  • rnd
  • swarfega
  • new rnd
  • rutine rnd
  • nickh swarfega
  • nick swarfega
  • rnd rom
  • rnd in rom
  • chev swarfega
  • rnd 65535
  • rnd asm
  • rnd slow
  • rnd performance
  • rnd peek
  • rnd repetitio s
  • rnd repetition
  • rnd weights
  • rnd percentage
  • rnd chance
  • rnd probabilities

Copyright © 2024 World of Spectrum