Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. EkBass

    is "rand() % 100;" not very random?

    rand() does not inherently favor any range of numbers, as it is an algorithm that produces a pseudorandom sequence of numbers. In general, when generating multiple random numbers, patterns can often emerge, as these numbers are pseudorandom and not truly random. To avoid this, it is important...
  2. EkBass

    Python 'pd' is not defined

    Show some code and errors since by your post its pretty hard to do any conclusions.
  3. EkBass

    is "rand() % 100;" not very random?

    Well, there is allmost all imaginable math formulas allready done so you just need to adjust one to suit your needs.
  4. EkBass

    Looking for guy to make some projects in C++ with

    Hi Borked. Just boldly go to some C++ forums and communities and take a part for the conversation. Of course with normal proceeds of safety. One other way is to examine github and C++ projects there. Maybe you can add something some of them and this way make connections?
  5. EkBass

    is "rand() % 100;" not very random?

    Ill continue: Of course if human knows that hes or her output is validated like this way, he or she can adjust the output he or she creates. But when doing this with humans who does not know that their output is validated, then with prettu good accuracy we can determine whos output is done by...
  6. EkBass

    is "rand() % 100;" not very random?

    A way to figure out the difference between a man-made and computer-generated pattern of numbers is to study the random numbers generated. Computers usually produce more uniform patterns, such as having more numbers between 20 and 40. Man-made numbers may be more varied and often have different...
  7. EkBass

    is "rand() % 100;" not very random?

    Actually one way to figure out is some pattern of numbers done by a man or computer. Computer tries to make a random numbers, which actually produces usually some random patterns, such as that numbers between 20 to 40 are more common than rest of numbers. One other way is to follow randomed...
  8. EkBass

    is "rand() % 100;" not very random?

    There is several ways how to round a number in C or in any languages. When using integers, its allways the full digit at front of decimals. 1.23 is 1 1.99999 is still 1. You need to study C function round to make it rounder towards nearest full integer. Here is pretty good tutorial for it: C...
  9. EkBass

    is "rand() % 100;" not very random?

    Yeah. Im just bit old here lol
  10. EkBass

    is "rand() % 100;" not very random?

    I dont think the subject was about what is proper method to generate random numbers, but have a conversation of how random the results are. Correct me if im wrong.
  11. EkBass

    is "rand() % 100;" not very random?

    Based on your output and considering everything between 20 and 40, around 33% of the numbers are inside them. Now, 20 numbers are 20% of that hundred so they should appear in a range of that percentage as well. But there is no reason to study more since total number of outputs is only from a 30...
  12. EkBass

    JavaScript JavaScript application: Electron, Tauri or something else?

    I dont think there is significant difference in resources usage and app start-up time depends do you also need to open chromium browser each time. Of course, lots of is up to what kind of program you have there and what it does. But in general, if the the program allready works as is, i would...
  13. EkBass

    JavaScript JavaScript application: Electron, Tauri or something else?

    Well, javascript is exellent programming language and i dont see any reason to change it atleast from what you wrote. It is used as backbone for threejs 3D library as well for many applications for gaming or such. See my latest post from subforum where projects are shared. As you can see, you...
  14. EkBass

    C# Help to understand a code

    Can you post the core part of the code that will handle this?
  15. EkBass

    Chat with OpenAIAPI in console

    Well, for some unknown reason i did work with this a bit more. Lots of it was rewritten, but it was pretty simple after the first round. Its possible to load a file to bot, catch the latest code it has provided and something else. /* This is help.txt for quick help in console Commands...
  16. EkBass

    Chat with OpenAIAPI in console

    Hi. For some reason im not able to add code etc. tags to post. Maybe maintenance goin onor something. Anyway, here's the link to a Chat with OenAIAPI in console. Link updated in next post.
  17. EkBass

    Chat about coding with OpenAI

    I watch WPT matches time to time at tv, and the players has acces to internet via phones they are allowed to use during the game. With a pretty minor fine tunings, imagine what this kind of AI could affect. Yes, there is a human factor allways present but these peoples plays against each other...
  18. EkBass

    Chat about coding with OpenAI

    Yes, i actually read from the news paper this morning about this problem. On the otherhand it is great tool for many. I dont see anything wrong if we can automise some simple programming tasks with AI. Atleast in current level it cant produce long and complicated softwares, atleast without...
  19. EkBass

    Chat about coding with OpenAI

    Very cool answer. I didnt take in notice, that it could be used to get homeworks done or as easy way to build new apps. With my experience for now, it cant be used to do that. Maybe it behaves like that in purpose. Anyway, result and more info of my experience is here. Will i use it in...
  20. EkBass

    Dicegame in console against simple AI

    So, this started when i thought different variations of a regular dice game. There is a billion dicegames allready so mostlikely this is pretty close some of them. 1. Anyway, idea is to get total of 19 or get closer to it than opponent. A draw game is possible if both players stops in same...
Back
Top Bottom