def random_nfglobal(): label = random_object_from_collection(nfdb())['label'] #This version leaves the word 'random' in the URL: #return render_field_webpage({'label': label}) #This version uses the number field's own URL: #url = return redirect(url_for(".by_label", label=label))
def random_nfglobal(): label = random_object_from_collection( getDBConnection().numberfields.fields )['label'] #This version leaves the word 'random' in the URL: #return render_field_webpage({'label': label}) #This version uses the number field's own URL: #url = return redirect(url_for(".by_label", label= label))
def random_curve(): E = random_object_from_collection(db_ecnf()) return redirect( url_for(".show_ecnf", nf=E['field_label'], conductor_label=E['conductor_label'], class_label=E['iso_label'], number=E['number']), 307)
def random_form(): label = random_object_from_collection( db_emf() )['hecke_orbit_label'] level, weight, character, label = parse_newform_label(label) args={} args['level'] = level args['weight'] = weight args['character'] = character args['label'] = label return redirect(url_for(".render_elliptic_modular_forms", **args), 301)
def random_curve(): E = random_object_from_collection(db_ecnf()) return redirect( url_for( ".show_ecnf", nf=E["field_label"], conductor_label=E["conductor_label"], class_label=E["iso_label"], number=E["number"], ), 301, )
def random_field(): label = random_object_from_collection( base.getDBConnection().localfields.fields)['label'] return redirect(url_for(".by_label", label=label), 301)
def random(): data = random_object_from_collection(st_groups()) return redirect(url_for('.by_label', label=data['label']), 307)
def random_lattice(): res = random_object_from_collection(lattice_db()) return redirect(url_for(".render_lattice_webpage", label=res['label']), 307)
def random_hmf(): # Random Hilbert modular form return hilbert_modular_form_by_label( random_object_from_collection( getDBConnection().hmfs.forms ) )
def random_group(): label = random_object_from_collection( base.getDBConnection().transitivegroups.groups)['label'] return redirect(url_for(".by_label", label=label), 301)
def random_curve(): E = random_object_from_collection(db_ecnf()) return redirect(url_for(".show_ecnf", nf=E['field_label'], conductor_label=E['conductor_label'], class_label=E['iso_label'], number=E['number']), 301)
def random_curve(): label = random_object_from_collection( db_ec() )['label'] # This version leaves the word 'random' in the URL: # return render_curve_webpage_by_label(label) # This version uses the curve's own URL: return redirect(url_for(".by_ec_label", label=label), 301)
def random_rep_galois_modl(): res = random_object_from_collection( getDBConnection().mod_l_galois.reps ) return redirect(url_for(".render_rep_galois_modl_webpage", label=res['label']))
def random_rep_galois_modl(): res = random_object_from_collection(getDBConnection().mod_l_galois.reps) return redirect( url_for(".render_rep_galois_modl_webpage", label=res['label']))
def random_representation(): rep = random_object_from_collection(ArtinRepresentation.collection()) num = random.randrange(0, len(rep['GaloisConjugates'])) label = rep['Baselabel'] + "c" + str(num + 1) return redirect( url_for(".render_artin_representation_webpage", label=label), 301)
def random_lattice(): res = random_object_from_collection(getDBConnection().Lattices.lat) return redirect(url_for(".render_lattice_webpage", label=res['label']))
def random_curve(): label = random_object_from_collection( db_ec() )['lmfdb_label'] cond, iso, num = split_lmfdb_label(label) return redirect(url_for(".by_triple_label", conductor=cond, iso_label=iso, number=num))
def random_hmf(): # Random Hilbert modular form return hilbert_modular_form_by_label( random_object_from_collection(getDBConnection().hmfs.forms))
def random_hecke_algebra(): res = random_object_from_collection(hecke_db()) return redirect(url_for(".render_hecke_algebras_webpage", label=res['label']))
def random_modlmf(): res = random_object_from_collection( getDBConnection().mod_l_eigenvalues.modlmf) return redirect(url_for(".render_modlmf_webpage", label=res['label']))
def random_class(): label = random_object_from_collection(db())['label'] g, q, iso = split_label(label) return redirect(url_for(".abelian_varieties_by_gqi", g=g, q=q, iso=iso))
def random(): data = random_object_from_collection(st_groups()) return redirect(url_for('.by_label', label=data['label']), 307)
def random_group(): label = random_object_from_collection(base.getDBConnection().transitivegroups.groups)['label'] return redirect(url_for(".by_label", label=label), 307)
def random_curve(): label = random_object_from_collection(g2cdb().curves)['label'] # This version leaves the word 'random' in the URL: #return render_curve_webpage_by_label(label) # This version uses the curve's own URL: return redirect(url_for(".by_g2c_label", label=label), 301)
def random_modlmf(): res = random_object_from_collection( getDBConnection().mod_l_eigenvalues.modlmf ) return redirect(url_for(".render_modlmf_webpage", label=res['label']))
def random_lattice(): res = random_object_from_collection( getDBConnection().Lattices.lat ) return redirect(url_for(".render_lattice_webpage", label=res['label']))
def random_field(): label = random_object_from_collection(lfdb())['label'] return redirect(url_for(".by_label", label=label), 307)
def random_curve(): label = random_object_from_collection( db_ec() )['lmfdb_label'] cond, iso, num = split_lmfdb_label(label) return redirect(url_for(".by_triple_label", conductor=cond, iso_label=iso, number=num))
def random_representation(): rep = random_object_from_collection(ArtinRepresentation.collection()) num = random.randrange(0, len(rep['GaloisConjugates'])) label = rep['Baselabel']+"c"+str(num+1) return redirect(url_for(".render_artin_representation_webpage", label=label), 301)
def random_field(): label = random_object_from_collection(base.getDBConnection().localfields.fields)['label'] return redirect(url_for(".by_label", label=label), 301)
def random_field(): label = random_object_from_collection(lfdb())['label'] return redirect(url_for(".by_label", label=label), 307)
def random_bmf(): # Random Hilbert modular form return bianchi_modular_form_by_label( random_object_from_collection(db_forms()))
def random_hmf(): # Random Hilbert modular form return hilbert_modular_form_by_label( random_object_from_collection( db_forms() ) )
def random_class(): label = random_object_from_collection(db())['label'] g, q, iso = split_label(label) return redirect(url_for(".abelian_varieties_by_gqi", g = g, q = q, iso = iso))
def random_hecke_algebra(): res = random_object_from_collection(hecke_db()) return redirect(url_for(".render_hecke_algebras_webpage", label=res['label']))