I want to implement the need to enter a name to get a random answer, but enter the same name to get the same answer.
read the post and said I wanted to hash the number, and now I have transcoded the name entered by the user into five digits. Next, how to hash it and get a fixed random number in a specified range?
onLoad: function (options) {
this.data.name = wx.getStorageSync("name");
this.setData({
name: this.data.name
});
this.setData({
words: this.data.name.charCodeAt(0)
});