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>
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    [QUOTE=WibbleBibble;649808]So with an array whats faster for basic to work with a array of strings or a numeric array if i have data that could be used either as a numeric array or i could just put them in a char array.[/QUOTE]

    Here's a simple ...
    Battle Bunny Battle Bunny September 2012 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…

    ... (as if you set say RND*7 to do colours a ... erm 'randomness'

    RANDOMIZE RND*65535

    To reset the ...
    spider spider December 2018 Sinclair Basic
  • 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…

    ... ] = 16-bit positive integer (0-65535)
    [i]string1[/i] = non ...
    chev chev November 2004 Sinclair Basic
  • 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
  • Random Numbers, USR Return Values & Timing BASICI've been trying out Jon Ritman's random number routine, published in Your Sinclair Aug'87. Apart from a timing comparison I also did a frequency ana…

    ... from 0 to 1 for 65535 values. (Values are all ... printing.) The standard Spectrum RND (on the left) gives ... test loop processing overhead, RND took 8.82 seconds ... "much, much faster" than RND. The '500' timings for ... function 3*speed of RND and with almost identical ...
    Battle Bunny Battle Bunny January 2017 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
  • Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…

    ... hold a maximum score of 65535 (an unsigned integer ranges from ... 0-65535, having gained larger positive range ... number generators like basic's RND and C's rand() (see ...
    Alcoholics Anonymous Alcoholics Anonymous July 2007 Development
  • Announce: BASin r14b availableHere's the fix mentioned earlier for those of you that either are too lazy to update your OS (XP SP2 has been out aaaaages, Arjun!) or even junk that…

    ... 'm looking at the USR 65535 issue, as you're right ... .

    Your OUT 251,RND*255 issue is also fixed ...
    Dunny Dunny September 2008 Emulators
  • 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.< ... ]B[/B] from 0 to 65535, without repetition. Now calculate ... of numbers from 0 to 65535 without repetition. Since we ...
    Einar Saukas Einar Saukas July 2013 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).…

    ... 768 calls to JR's RND routine, from which I'm ... be in the range 0-65535, just happen to produce 768 ...
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • cluless journo's talk retro[url]http://www.dailymail.co.uk/sciencetech/article-2479087/Over-30-Then-game-Tetris-Pac-Man-Atari-classed-digital-ARCHAEOLOGY.html[/url] magic mine…

    ... N=32768 TO 65535
    20 POKE N, INT(RND*255)
    leespoons leespoons October 2013 Chit chat
  • cluless journo's talk retro[url]http://www.dailymail.co.uk/sciencetech/article-2479087/Over-30-Then-game-Tetris-Pac-Man-Atari-classed-digital-ARCHAEOLOGY.html[/url] magic mine…

    ... N=32768 TO 65535
    20 POKE N, INT(RND*255)
    Matt_B Matt_B October 2013 Chit chat
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... point to 65367, 65368 & 65535, leaving 168 bytes for the ... 22, it will print the RND token.

    To treat ...
    Battle Bunny Battle Bunny February 2014 Development
  • How to print logo onto screen at chosen coordinates?Hi, I've just got back into zx spectrum games after all these years and after seeing some of the great games on here I would like to start learning p…

    ... point to 65367, 65368 & 65535, leaving 168 bytes for the ... 22, it will print the RND token.

    To treat ...
    Speccy_James Speccy_James February 2014 Development
  • quick RAM copy using LET in BASICI'm in the process of reviewing, revising and refining all the programming tips & utility routines which I've posted on this forum over the last eigh…

    ... (a$,b$)=0:[/b] CLEAR 65535-768: LET hi=65536-768 ... FN b(s)=s+INT (RND*3)*256: [b]DEF FN ...
    Battle Bunny Battle Bunny February 2014 Sinclair Basic
  • quick RAM copy using LET in BASICI'm in the process of reviewing, revising and refining all the programming tips & utility routines which I've posted on this forum over the last eigh…

    ... $,u,v)=190:[/b] CLEAR 65535-768: LET hi=65536-768 ... FN b(s)=s+INT (RND*3)*256: [b]DEF FN ...
    Battle Bunny Battle Bunny February 2014 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…

    ... ;612628"]...
    if RND returns .99999999 then RND*49 gives 49 instead ... number I do get from RND is 0.99998474

    65535
    30 LET B=RND:IF B> ...
    Mad Fritz Mad Fritz May 2016 Sinclair 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
  • ANNOUNCE: Manic Miner 4 and Buddha Of Suburbia: Special EditionsToday I release special editions of my first two Manic Miner games - Manic Miner 4 and Manic Miner: The Buddha Of Suburbia. When I originally wrote …

    ... edited the room-data (45056-65535). I have now edited the ... />
    The room-data (45056-65535) are identical to the original ...
    andrewbroad andrewbroad August 2003 Games
  • 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
  • Now it's workingHello again and again, Today I received the membrane. And i turned the speccy on and worked a bit. I wrote some commands, used CLEAR 65535 command to…

    ... wrote some commands, used CLEAR 65535 command to recognise if it ...
    tayanc_molla tayanc_molla February 2005 Sinclair Miscellaneous
<1234567…34>

Latest Posts

  • Goodbye Z80
    zx1 on 7:11PM
  • Happy 40th Birthday to the Amstrad CPC464!
    AndyC on 6:29PM
  • Another Birthday! The Game Boy Is 35!
    dm_boozefreek on 6:17PM
  • I bought an accoustic guitar. How do you play it?
    Maroc's Other Projection on 6:04PM
  • I am currently watching.....
    Antiriad2097 on 5:05PM
  • European Software Titles with an English version
    harriusherbartio on 12:06PM
  • How Do You Categorize Your Speccy Software and Games?
    harriusherbartio on 11:21AM
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on 11:01AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21

HitBox

Word Docs Hits
rnd 2.9K 4.1K
65535 665 844

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
  • when a basic program is running what happening near 65535
  • 65535
  • out 65535
  • rnd rom
  • rnd in rom
  • rnd swarfega
  • rnd asm
  • rnd slow
  • rnd performance
  • rnd peek
  • rnd repetitio s
  • rnd repetition
  • rnd weights
  • rnd percentage
  • rnd chance
  • rnd probabilities
  • print 65535

Copyright © 2024 World of Spectrum