Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    And that means anything? Like I said.. I'd like to see you enter something "creative".

    This is a logic experiment for generating a RN. Creativity really doesn't play into it, logic does. Logic and true randomness.

    Like I said, enter

  2. #12
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    I don't have time to write a script but I'd probably do something like:

    Generate time() and microtime(), raise time() to the power of microtime()*10^-(Length of microtime) store as $n1, repeat again but multiply microtime by it's second non-zero digit then store as $n2, repeat but multiply microtime by it's last non-zero digit store as $n3, multiply these all together to make $n4, convert all these to binary, XOR them then store as $fnum, convert $fnum back to base_10, choose central 10 digits and append them to final number, repeat 100 times. Would probably have a bias towards zero due to XOR, I'd also have to manually xor the numbers rather than use "^" as it's technically an encryption function.
    Last edited by Chippiewill; 03-12-2011 at 10:23 PM.
    Chippiewill.


  3. #13
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    And that's creative?

  4. #14
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    I didn't use an easy peasy encoding function to change my non-random integer into a pseudorandom one.
    Chippiewill.


  5. #15
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    You still used time and micro time, the base of mine. So in regards, they both do the same thing from the same initial seed

  6. #16
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    That I wasn't bothered about, regardless. Considering you're the only entry you still win. Which colour VIP would you like?
    Chippiewill.


  7. #17
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    I couldn't take it from you, I've been a real butt to you. Either buy it for yourself from me, or buy it for me and me not know about it haha. Whatever color, I don't care

  8. #18
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default

    [@]@Dentafrice[/@]

    Okay first of all as you said he's a non-programmer so maybe you should have humoured him a little bit with his rules and allowed the terminology conflict to slide, because he's trying to do something fun here and if you're only going to put him down by being cynical you're only ruining it.

    Second I don't understand why you've pressured him into posting what he would have done just to tell him it's not very creative. I'm not sure how he's validating the scripts by compressing them, but from a general standpoint your script to generate a psudorandom number wasn't super creative either.
    I'm not crazy, ask my toaster.

  9. #19
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    You're not understanding that logical applications such as PRNGS, OCRs, and things of that nature are not "meant" to be creative. That is why I was making fun of him for a "creative" programming competition.

    Programming is logical, not an art project.

  10. #20
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Quote Originally Posted by HotelUser View Post
    I'm not sure how he's validating the scripts by compressing them
    Compression is often used to check how random data is because non-random data should be incompressible. This is because procedural generators eventually loop back round or have repeats which is how most compression formats work, (Locating repeats and storing the location of them instead of storing two copies of the same thing). For example if you kept appending time stamps one second apart then a majority of the time stamp would be repeated each iteration.

    Quote Originally Posted by Dentafrice
    You're not understanding that logical applications such as PRNGS, OCRs, and things of that nature are not "meant" to be creative. That is why I was making fun of him for a "creative" programming competition.

    Programming is logical, not an art project.
    The purpose of the competition was to show people how difficult it is to create random data, I was hoping that people would make scripts without the use of hashing or encryption or encoding to make it challenging and then to use unique ways of generating the numbers, and then to tinker around with it until it becomes fairly incompressible.
    Chippiewill.


Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •