I made a random number generator using pascal! My method was to use non repeating mathematical constants (pi and e in this case). I set it in a for loop. User can input how many digits they want in their random number x digits). It first take the x number of digit starting from the 3rd decimal point of p. Every time a user uses the program, it takes the number of digits starting from the decimal point 10 digits away from the previous one, alternating between e and pi for a true random feeling (this is done by using an counter. If odd = pi, if even = e using the div command)..
Built With
- pascal
Log in or sign up for Devpost to join the conversation.