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
  • Oneliner contestHello to you all, I dare you to make a program on 1 BASIC line. Here is the place to sent your ONELINERS [url]http://www.zxspectrum.00freehost.co…

    OK here's the final version of "Mothership":

    [CODE]
    1 DIM i$(3,7):
    FOR g=1 TO 3:
    LET i$(g)=" H H H":
    NEXT g:
    READ m,b,p,a,s,e,n:
    FOR y=0 TO 13:
    FOR x=26-e TO e STEP e/13-1:
    FOR i=1 TO 3:
    ...
    Einar Saukas Einar Saukas August 2007 Development
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... pseudo random numbers generated by RND. RANDOMIZE selects with which number ... be possible to notice a repetition pattern. However this is not ... Typically a program uses each RND in a different context, for ... instance the 1st RND to decide where to spawn ...
    Einar Saukas Einar Saukas May 2011 Sinclair Basic
  • smooth movement in basicWas trying to figure this out myself but i would like to be pointed in right direction now :-). How do I make something move in Basic without gettin…

    ... the restart point to avoid repetition.
    * 20 s & cs ... are of the same form. RND adjustment added to introduce variation ...
    Battle Bunny Battle Bunny October 2012 Sinclair Basic
  • generating a pre-defined list in an un-defined sequenceI've decided to become a drunkard, to which end I've been drinking a whole bottle of beer in one day (whereas normally I'd make it last 2 or 3 days).…

    ... a perfect solution combining [B]RND[/B] and a 16 ... [LIST]
    [*]First use [B]RND[/B] to generate a new ... may use the same [B]RND[/B] to do so.< ... ] from 0 to 65535, without repetition. Now calculate [B]C = ... from 0 to 65535 without repetition. Since we will use ...
    Einar Saukas Einar Saukas July 2013 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 …

    ...
    15 LET r=INT (RND*n)
    20 LET y ... it stops when the first repetition is found, and that happens ...
    mcleod_ideafix mcleod_ideafix August 2013 Sinclair Basic
  • Do you think Denton Design Games were vastly overrated by CrashA few spring to mind: Cosmic Wartoad (88%). All you did was play a few pathetic subgames. Frankie Goes To Hollywood (94%): All you did was play a f…

    ... )

    Bounces (75%): Utter repetition.

    Gift From The ... Gods (84%): Utter repetition again (nice graphics tho).
    Vampyre Vampyre May 2002 Games
  • 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
  • A few questions regarding EmuZwinI had posted this in the development forum and then remembered there was an emulators forum, so apologies for the repetition. 1. I have been trying …

    ... forum, so apologies for the repetition.

    1. I have ...
    dmsmith dmsmith August 2004 Emulators
  • 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
  • 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
  • Website idea: Text Adventure walkthroughs, complete with full text[QUOTE=ZX Beccy]Oh god am I! I recently bought the Zenobi collection, pure genius. When a computer game can have you in uncontrolable fits of laughte…

    ... , editing it slightly to minimise repetition. There's a LOT of ...
    NickH NickH September 2006 Games
  • 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
<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
repetition 169 189

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
  • new rnd
  • rutine rnd
  • avoid keyboard repetition
  • keyboard repetition
  • rnd rom
  • rnd in rom
  • rnd 65535
  • rnd swarfega
  • rnd asm
  • rnd slow
  • rnd performance
  • rnd peek
  • rnd repetitio s
  • rnd weights
  • rnd percentage
  • rnd chance
  • rnd probabilities
  • ld a r rnd
  • hikoki point rnd

Copyright © 2024 World of Spectrum