Skip to content
Random Number Generator
Profile icon
HarveyH

A basic number generator with built in error messages to stop you having to restart the software.

Here is a list of versions:
https://repl.it/@HarveyH/Random-Number-Generator-v101
https://repl.it/@HarveyH/Random-Number-Generator

You are viewing a single comment. View All
Profile icon
Pepper100

Hi, I am making a random number generator! Mine was failing at the ranint function. I looked up some random number generators to see where I was going wrong and came across yours. I looked in your code to see how close it was to mine, and your randint command was the same as mine, but with different variables. Please can you take a look at my code and see where I went wrong. https://repl.it/@Pepper100/Random-Number-Generator-2#main.py
Cheers, Pepper100.
P.s. line 10 to 29 is novelty text, it serves no purpose, but is there for novelty.

Profile icon
HarveyH

@Pepper100
I'm assuming someone has already fixed it for you because it seems to work great, but I am glad that you are learning! Nice piece of code and thank you for asking on here.

Profile icon
Pepper100

Thank you,@HarveyH someone has fixed it for me, i was using my Randint function and my variables were strings not integers, I didn’t know they were things, so I am learning! Thank you anyway!

Profile icon
HarveyH

@Pepper100
Your welcome!