Skip to main content

Random Generation That's Not So Random

While I do want the Galliventurer universe to be procedurally & randomly generated, I don't want it to be truly random. There needs to be a modicum of probability involved. Some weighting so that some things are rarer than others. After all we can have too many diamond covered planets or uranium based suns - as you can see I haven't actually started thinking too much about the composition of the planets, stars, etc.




Keeping this probability based random selection in mind, I'm going to be using a dynamically weighted series of arrays to randomly select properties for entities in the Galliventurer universe. Using something very similar to (or based on) this article by Michael Czechowski https://observablehq.com/@nextlevelshit/rejection-sampling-in-javascript. The main bit of complexity here will be the values of a randomly selected property will affect the weights of the next selection. For example the size of a star will greatly change the weight of the probabilities for the temperature (which determines it's colour). Another example would be a star that is randomly selected to be large, will greatly skew the weights to have more orbiting planetary bodies.

Now off to determine all the things that need to go into the lists, and what their initial weights for probability should be, wish me luck. 

Comments

  1. Note to self - try to make the next post not be publish near midnight 🤦‍♂️🥃

    ReplyDelete

Post a Comment

Popular posts from this blog

Knowledge is Power - Society is Weak

Never more true than today, knowledge is power. Or more aptly in today's world the ability to provide & control the flow of knowledge is power. Recently there's been several large course corrections occur, several years too late but hey, better late than never as the saying goes. This highlights one of the biggest and most major flaws with the way we consume information on the internet. Social media, for good and for ill, is now a major source of information and "news" for millions of people across the planet. There are countless examples of the way that misinformation & even disinformation is created, spread and broadcast across the web. None more prevalent & far reaching than social media. Social media disarms in a way that in person discussion & social interaction previously couldn't. If you heard a story in person that even one or two people could corroborate it would be easy to accept as true, or just as easily refuted by the same small number...

Genetic Revert & Refresh

The premise is pretty simple, what if we could press the undo button for DNA related aflictions. It's a sound theory but whether it would actually work or not is questionable. The possibilities! This particular train of thought was mostly born from thinking about cancerous cells, which grow out of control due to a minute mutation in the DNA of a cell. The immune system doesn't identify the cancerous cells as something that is dangerous because they're near identical to any other healthy cell. The same could be said with aging, cells slowly mutating & loss of elasticity cause degradation in copying the genetic information to new cells. CRISPR gene editing theoretically allows us to alter DNA in a live organism. With this technique the ability to alter a DNA sequence needs only the desired information payload to be spliced in. This obviously raises rather large ethical concerns of being able to wildly alter people's DNA and fundamentally change the human genome. Whi...

How to Think

Moving an arm and thinking about moving an arm are two vastly different things. Even thinking about thinking about moving an arm is a natural thing to do even if reading it is very odd. Now the hard part, how to you design thinking ? The deliberate process of simulating scenarios to either logical or illogical ends would seem like a great fit for computers that can do millions of calculations a second. The slow an deliberate winding down a thought path seems to be the missing link to truely intelligent machines. We are very good at making machines. Even more so machines that actually produce things and have purpose. Since the earliest primitive forms of man, our tools are defined by their use. Or more aptly by the end result they achieve. So what is the end result of smart machines? To drive our cars, build our structures, do the heavy lifting and manage our lives? To do all that the ability to compute and apply action is needed but not actual thought. Most business tools and modern ap...