+ Reply to Thread
Results 1 to 3 of 3

Thread: Wired Random Number/Colour Generator

  1. #1
    Wire Noob Snitchio's Avatar
    Join Date
    Nov 2008
    Posts
    1

    Smile Wired Random Number/Colour Generator

    Before I start, I'd like to point out that I am absolutely useless with Wire Mod and that the following is either not possible, or just too complex for me to make!

    I do a lot of Role Play, and the other night I was thinking it would be cool to get a lottery going. Everyone on the server was up for it, and I started building a very poor lottery machine. It contained loads of bouncy balls (all different colours), and everyone betting on the colour they wanted. Needless to say, it didn't work. I stole the money and locked myself in a room.

    So, I was thinking, is it possible to have one of the following;

    1. A Wired Unit which contains a random number generator, which upon the press of a button produces a number between 1 and 10. Then the person who has been assigned that number wins the lottery, and the money.

    2. A Wired Unit which shows random colours on the press of the button. Exact same principle as above, but shows colours instead of numbers.

    If anyone would have a go at making this, I'd be most appreciative.

    Cheers.

  2. #2
    GMech Developer InfectiousFight's Avatar
    Join Date
    Jun 2007
    Location
    Houston, TX
    Posts
    537

    Default Re: Wired Random Number/Colour Generator

    There IS already a random number generator. Please, look on the wiki, it's under Wired Gate: Arithmetic. For a random color generator, just generate random color values, and feed them to a pixel.
    Wire is about making things like these yourself, not having a pre-made ready-to-insert device for every single possible scenario that could ever be made.

  3. #3
    Wire Tutor chinoto's Avatar
    Join Date
    Apr 2008
    Location
    Brooklyn Park, MN. Lost my thumbdrive yet again...
    Posts
    1,983

    Default Re: Wired Random Number/Colour Generator

    Actually there is one for that InfectiousFight, just make an expression for every scenario. (WARNING: Do not attempt you will never stop making expressions!)
    (\__/) Expression 2 Resources: E2 Beginner's Guide | E2 Formatting Guide | E2 Function Reference | E2 Examples | Me
    (='.'=) PM me code and I'll send it back optimized if possible. (I find it fun dammit!)
    (")_(") Drunkie referring to an E2: "It's obvious that Chinoto made this, his coding style is all over it."

+ Reply to Thread

Similar Threads

  1. ASM Random Number (BP, possibly your attn here!)
    By robertark in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 4
    Last Post: 01-28-2010, 01:39 AM
  2. New Request: A random number selector
    By tnecromancer in forum Ideas & Suggestions
    Replies: 16
    Last Post: 11-11-2008, 01:06 AM
  3. Idea, Random Number
    By WireDisease in forum Ideas & Suggestions
    Replies: 7
    Last Post: 07-16-2007, 09:52 PM
  4. Making a random chip give out only one random number?
    By BAZ in forum Installation and Malfunctions Support
    Replies: 6
    Last Post: 05-27-2007, 01:02 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots