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>
  • 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
  • Vector font in BASiCHi guys) Some fifteen years ago I saw a quite short BASIC prog that could simulate a vector font with size/ thickness/ italicization params. I remem…

    ... 2: LET j=INT 14-(RND*12): FOR z=18 TO ...
    NRA NRA February 2010 Sinclair Basic
  • Obtuse One-LinerFollowing a request in another thread, this could almost be crammed into one line. It uses a simple ON ERR CONTINUE to give a continuous display. [c…

    Following a request in another thread, this could almost be crammed into one line.
    It uses a simple ON ERR CONTINUE to give a continuous display.

    [code]
    10 INK RND*6
    20 IF RND
    Geoff Geoff May 2010 Sinclair Basic
  • Happy birthday RND!!Merry birthday... drink lots!! :smile:

    Merry birthday... drink lots!! :smile:
    GreenCard GreenCard June 2010 Chit chat
  • Die Rolling sound?Digging out my old Fighting fantasy programs (so far unsuccessfully... thanks c60) had me wondering how I'd program it these days. Hopefully better,…

    ... to 12
    BEEP rnd/100,(-14-(rnd*5))
    NEXT n ...
    Gedlion Gedlion July 2010 Sinclair Basic
  • Sorting an array...Hi Folks, Over the weekend I had a play with sorting algorithms - takes me back to my student days! :-o My first try was with the good old Bubble S…

    ... : LET p$(a)=CHR$ (65+RND*25): NEXT a
    140 ... : LET p$(a)=CHR$ (65+RND*25): NEXT a
    140 ...
    Paddy Coleman Paddy Coleman September 2010 Sinclair Basic
  • Happy birthday RND!Merry birthday... drink Chaos! :smile:

    Merry birthday... drink Chaos! :smile:
    GreenCard GreenCard June 2011 Chit chat
  • Birthday PlotsHello all; When browsing the web, I stumbled across an oddity known as Birthday Plots. In effect somebody enters a numeric date and the computer prin…

    ... )*0.01
    50 I=RND(-Z*0.0000001)
    60 ... I=INT(RND(Z)*10)+5
    70 ...
    100 R[J,1]=RND(Z)
    110 IF R ... ]
    150 R[J,2]=RND(Z)
    160 IF R ...
    Meurglys68 Meurglys68 July 2011 Sinclair Basic
  • Help with random numbers......Hi all, wonder if anyone can help me... sort of a novice here ... I have been trying to write a simple ish basic program to compare random sets of n…

    ... /> 80 LET x=1+INT (RND*n)
    90 LET X ...
    loonix loonix July 2011 Sinclair Basic
  • 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 …

    ... /> jr c,NOSPACE ;if not RND,INKEY$,PI
    ld a ...
    Battle Bunny Battle Bunny December 2011 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…

    ... is done on a basic (RND*2) command which then determines ...
    Wookiee Wookiee January 2012 Sinclair Basic
  • SpecBAS 0.724 Now available!Hi folks - Again, a new SpecBAS for you. Some stunning bugs made their way into the last one, so I had to get a new version out sharpish. And for o…

    Hi folks -

    Again, a new SpecBAS for you. Some stunning bugs made their way into the last one, so I had to get a new version out sharpish. And for once, you windows folks are at the bleeding edge :)

    Anyhoo, new features are few ...
    Dunny Dunny January 2012 Sinclair Miscellaneous
  • 30th PDF IS HERE!!!!![url]ftp://ftp.worldofspectrum.org/pub/sinclair/extras/30thAnniversary/ZXSpectrum30thAnniversaryCommunitySouvenir.pdf[/url] OMG we got it out on t…

    ... .sendspace.com/file/cfqtn1[/url] RND's very own personal download ...
    ZX Beccy ZX Beccy April 2012 ZX Shed
  • Dimming the screen...Hi Folks, I was hoping someone on here could help me with a wee machine code routine. I have written the following example in BASIC: [CODE]100 REM…

    ... : PRINT AT y,x; PAPER RND*7;" ": NEXT x: NEXT y ...
    Paddy Coleman Paddy Coleman May 2012 Development
  • CMWC random number generator for Z80Seeing the interest regarding the [URL="http://www.worldofspectrum.org/forums/showthread.php?t=23070"]Xor-Shift random number generator for Z80[/URL]…

    ... /> org 40000

    call rnd ; BASIC driver
    ld c ... ,0
    ret

    rnd ld de,0 ; c,i ... = t / 256

    ld (rnd+1),de

    ld ...
    Patrik Rak Patrik Rak June 2012 Development
  • happy birthday RNDhave a good .. if not random one..

    have a good .. if not random one..
    fog fog June 2012 Chit chat
  • Hidden message in Down To EarthJust found this in the Down To Earth code. I like reading these old messages left behind by programmers. [code]WELCOME TO ORIFICE Credits Darren B…

    ... FOR-NEXT loop,
    a RND & a devious POKE command ...
    FrankT FrankT January 2013 Sinclair Miscellaneous
  • Happy birthday RND!Hope it's a good 'un. (Don't forget to RANDOMISE.)

    Hope it's a good 'un.

    (Don't forget to RANDOMISE.)
    Morkin Morkin June 2013 Chit chat
  • New game: The curse of OddvilleDon't get too excited! :p Just wanted to share this because the coding of it is driving me mad, or rather the game designer is. The curse of Oddvil…

    ... Patrick Rak's XOR Shift RND generator, and Einar's 'Dragon ...
    R-Tape R-Tape July 2013 Brand new software
  • 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).…

    ...
    20 LET r=INT (RND*768): LET y=INT (r ...
    Battle Bunny Battle Bunny July 2013 Sinclair Basic
  • Help a small machine code game.Hello all you clever wossers are there any GOOD?? games that are in machine code (no basic apart from the loader,rnd usr bit) but are very small ma…

    ... basic apart from the loader,rnd usr bit) but are very ...
    ASH-II ASH-II January 2014 Games
  • INPUT help?Hi folks. :) Brace yourselves, this is probably a very silly question, my BASIC knowledge is very... well, basic... Let's say, for example, I'm mak…

    ... number=1+INT (1+999*RND)
    20 INPUT "Can you ...
    GreenCard GreenCard February 2014 Sinclair Basic
  • What's wrong with this code?[code]10 LET X=1+INT (RND*99999999): LET Y=1+INT (RND*99999999) 20 INK 4 30 PAPER 0 40 PRINT "Quest for ye flask!" 50 PRINT "?2014 Yoshiatom" 60 PRIN…

    ... ]10 LET X=1+INT (RND*99999999): LET Y=1+INT ... (RND*99999999)
    20 INK 4< ...
    Yoshiatom Yoshiatom February 2014 Sinclair Basic
  • GEDit syntax highlighting for Boriel's ZX BasicHi! I just tailored this syntax highlighting code and would like to share with he community. Suggestions are always welcome, though the file works w…

    ...
    randomize
    return
    rnd
    save
    sgn
    pkersey pkersey February 2014 Development
  • NOW look at what SpecBAS can do![img]https://sites.google.com/site/pauldunn/specbas_32.png[/img] Here's the code: [code] 10 WINDOW NEW w,0,0,SCRw,SCRh BPP 32 20 FOR f=1 TO 512 30 …

    ... 512
    30 LET x=RND*SCRw
    40 INK (((256 ... ) SHL 24)+((RND*256) SHL 16)+((RND*256) SHL 8)+RND*256
    50 CIRCLE x,RND*SCRh,10+RND ...
    Dunny Dunny March 2014 Sinclair Basic
  • Happy Birthday RND !Have a good one! :)

    Have a good one! :)
    deadpan666 deadpan666 June 2014 Chit chat
<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